What is the difference between declaration and definition?
DECLARATION : declaration only creates the variable name and nothing exists against it. i.e no memory space is consumed.
eg. extern a;
DEFINITION : definition declares as well as assigns some value to the variable.
eg. int a;
even though we are not mentioning any value default value is provided by the C compiler.
eg. int a=10;