Initialization means assigning a value to the variable.
If variables are not explicitly initialised, then external and static variables are initialised to zero; pointers (see ch 8) are initialised to NULL ; auto and register variables have undefined values.
int x = 1;
char quote = '\'';
long day = 60 * 24;
int len = strlen(s);
external and static
initialisation done once only.
auto and register
initialisation done each time block is entered.
external and static variables cannot be initialised with a value that is not known until run-time; the initialiser must be a constant expression.
About goddem
Templatesyard is a blogger resources site is a provider of high quality blogger template with premium looking layout and robust design. The main mission of templatesyard is to provide the best quality blogger templates which are professionally designed and perfectlly seo optimized to deliver best result for your blog.
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment