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 are the restrictions apply to constructors and destructors?
What are references in c++? What is a local reference?
Define anonymous class.
Can java be faster than c++?
What are pointer-to-members? Explain.
Differentiate between realloc() and free().
What is const in c++?
What does new return if there is insufficient memory to make your new object?
Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).
what is scupper?
Write about a nested class and mention its use?
What is c++ best used for?
What is #include iostream h in c++?
What do you mean by friend class & friend function in c++?
Explain the benefits of proper inheritance.