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];
In computer programming, a declaration determines the name and data type of a variable or other element. Programmers declare variables by writing the name of the variable into the code, along with any data type indicators and another required syntax.
Declaration makes the presence of an object or function known, but does not create it.
Definition creates an object or a function. A definition is automatically also a declaration.
Declaration makes the presence of an object or function known, but does not create it.
Definition creates an object or a function. A definition is automatically also a declaration.