Difference between static global and global?
Answer Posted / nischal bansal
Static global variable can be used only in the file, it is
declared whereas global variable can be used in other files
also. we have to include the file, in which we have
declared the variable
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
Is there structure in c++?
What is a rooted hierarchy?
Why do we use using namespace std in c++?
Give an example of run-time polymorphism/virtual functions.
What is a c++ object?
What is the difference between global variables and static varables?
Out of fgets() and gets() which function is safe to use?
What is long in c++?
Evaluate !(1&&1||1&&0) a) Error b) False c) True
What are keywords in c++?
What is the use of 'this' pointer?
What are move semantics?
What is the difference between #import and #include?
Why is c++ is better than c?
Describe the advantage of an external iterator.