What is the difference between declaration and definition?

In C language Declaration specifies the properties of a variable,
ex: int a;
int roll_no[ ];
Definition declares the variable and causes the storage to be allocated.
ex: int a=5;
int roll_no[50];
 
Back
Top