I studied about satic global and global variables but still confused so plz help me to understand this topic and i'll realy appreciate if you can giva any code as example ...........!
I studied about satic global and global variables but still confused so plz help me to understand this topic and i'll realy appreciate if you can giva any code as example ...........!
A program can be spread across two or more files.So, a global variable can be accessed by all the files whereas, a static global variable can be accessed only by the file in which it is declared.Static means permanent and hence the value in static global variable is shared by
all the functions in that file.