Whats the significance of static global vars

Q:What is the use of declaring a global variable static?

Ans: It causes the object to have internal linkage i.e. the object can be accessed from that file only.



For understanding what is internal/external linkage, refer to http://publications.gbdirect.co.uk/c_book/chapter4/linkage.html which also serves as an excellent C language reference book.

Comments

Popular posts from this blog

shriranga kamalakanta

Deva Gharache dnyat kunala

Hindu aikya ghosh