Wednesday 23 February 2011

Declaration of a variable in c



Declaration of variables in c:



Declaration of
variables means to acknowledge the compiler only about variable name and its
data type with its modifiers but compiler doesn’t reserve any memory for the
variables.



In c we can
declared any variable with help of extern keyword while it has not initialized. Example of declaration:



(1) extern int a;



(2)extern struct student{

    char *

No comments:

Post a Comment