KyaPoocha.com

Huge Collection of Interview Questions


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;



If you liked this question/asnwer, make sure you
Subscribe to KyaPoocha.com RSS feed!


BOOKMARK THIS : BlinkList | del.icio.us | Digg it | Furl | reddit | StumbleUpon | Yahoo MyWeb |