Difference between static global and global?
Answer Posted / ravi.g
local static variable and global variable both are same
since both can be accessed from all the functions in the
same file in which they declared.
Global variable has the file scope since it can be accessed
from other files also by using extern keyword.
Local static vaeriables have no file scope since they can
not be accessed from other files by any means.
Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Are iterators pointers?
What is the benefit of encapsulation?
What happens when the extern "c" char func (char*,waste) executes?
Which c++ operator cannot overload?
What are structs in c++?
Is C++ case sensitive a) False b) Depends on implementation c) True
How do you print a string on the printer?
Explain how a pointer to function can be declared in C++?
Explain how to initialize a const member data.
Explain binary search.
What is the difference between c++ and turbo c++?
Is map thread safe c++?
what is multi-threading in C++?
What is the use of vtable?
How do you save a c++ program?