he leído de un libro sobre el defination tentativa de que,definición tentativa
A tentative definition is any external data declaration that has no storage class specifier and no initializer. A tentative definition becomes a full definition if the end of the translation unit is reached and no definition has appeared with an initializer for the identifier
explicar qué significa la afirmación anterior. Además, ¿la diferencia entre Declaración y Definición? Me confundí debido a esto. :( Y por qué no este programa da un error:
#include<stdio.h>
int a; //Tentative definition
int a; //similarly this declaration too.
int main() //not getting any error with this code why its so?
{
printf("hi");
}
Además, lo que está mal con este código:
#include<stdio.h>
printf("Hi");
int main(void){
return 0;
}
¿En qué libro leyó sobre la definición tentativa? – Destructor