Renesas TM V.3.20A Especificaciones Pagina 67

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 762
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 66
Renesas Technology, Tools FAQs
Last Updated: August 25, 2000
Document Number: 01051244_e
Q.
In a C language program, if I declare two variables with the same name and same type in the same file, will an error be generated?
A.
No, neither an error nor a warning will be generated.
This is in compliance with the ANSI specifications:
- There can be multiple external declarations for variables of the same name in one file, as long as the type assigned to that
name does not differ.
Example 1: No error generated
int i;
int i=1;
main()
{
}
Example 2: Duplicate definition error generated
int i;
char i;
main()
{
}
Top of Page | Back to Previous Page
Terms of Use Privacy Policy
(C)2004 Renesas Technology Corp., All Rights Reserved.
Vista de pagina 66
1 2 ... 62 63 64 65 66 67 68 69 70 71 72 ... 761 762

Comentarios a estos manuales

Sin comentarios