difference between declaration and definition in C
Declaration | Definition |
Tells compiler about name and type of variable, class, function, etc. | Tells compiler about what value stored in variable or working of function, class, etc. |
Memory allocation is not done. | Memory allocation is done. |
Can re-declare multiple times. | Can define only once. |