User Profile
Collapse
-
In a proj all .c files concerning to that project are compiled together. Is it not as good as they are like include files? So global static variable from other .c file can be accessed by extern command. Is it not so? -
Static global variable in header
The link that is given discusses about can static global variables be defined in .h file and the answer is yes. So that should not matter if it is defined in a .c file and would be accesable from another file in the same project using extern.
May be the information given is not authentic. Thank you JOASH.
Could you give some authentic links for global static variables...Leave a comment:
-
Global static
Global static variables are accessable from other files. The static is to make the variable retain the last assigned value. But what is given below says global static variables are not accesable from other file.
ex.
http://knol.google.com/k/vivek-bhadr...4lj4klzp0d/36#...Leave a comment:
No activity results to display
Show More
Leave a comment: