Tuesday, 8 February 2011

static variable in c


static keyword in c:



    Keyword static is used for declaring static variables in c. This modifier is used with all data types like int, float, double, array, pointer, structure, function etc.



Important points about static keyword:



1. It is not default storage class of global variables. For example, analyze the following three programs and its output.



(a)



#include

int a;

No comments:

Post a Comment