Difference between static global and global?
Answer Posted / sandeep gautham
a program can be spread across two or more files...
so, a global variable can be accessed by all the files..
where as, 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...
| Is This Answer Correct ? | 35 Yes | 5 No |
Post New Answer View All Answers
what does the following statement mean? int (*a)[4]
What is ios in c++?
Is linux written in c or c++?
What is the main function c++?
What is the best free c++ compiler for windows?
Is java made in c++?
How is static data member similar to a global variable?
How do you compile the source code with your compiler?
How do you clear a buffer in c++?
What does h mean in maths?
What are virtual functions in c++?
Why should you learn c++?
Why do we need c++?
What is the use of string in c++?
What is the difference between a baller and a reference in C++?