- During declaration space is not reserved for the variable program memory, its conveys the compiler that the variable is appeared in the program.Technically this way of conveying to the compiler is known as "FORWARD REFERENCE".
- By declaring we tell the datatype of variable and during definition the value is initialized.
- Function prototype contains function's name, argument types and return type.Its just a declaration of variable that doesn't contain any function body.
- If both global variable and local variable arives in the function at a time then priority is given to the local variable.
- Suppose the automatic array is partially initialized then remaining elements are initialized to zero.
- There is a similarity in Array and Structures with respect to initialization i.e., if partially initialized both assigns 0 to rest of elements.
0 comments:
Post a Comment