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
Does improper inheritance have a potential to wreck a project?
Describe Trees using C++ with an example.
Write a program which uses functions like strcmp(), strcpy()? etc
What are features of c++?
Should you pass exceptions by value or by reference?
What is c++ code?
What do you mean by late binding?
Tell me what are static member functions?
How can you quickly find the number of elements stored in a static array?
What is object in c++ example?
What is jump statement in C++?
What kind of problems can be solved by a namespace?
What is functions syntax in c++?
What are signs of manipulation?
Describe delete operator?