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
Explain explicit container.
How does list r; differs from list r();?
What are iterators in c++?
What is a container class?
What is late binding c++?
When is dynamic checking necessary?
What are pointer-to-members? Explain.
What is the best c c++ compiler for windows?
What is a class definition?
What is bubble sort c++?
write a programme to get a character and thier ASCII value
What are the differences between the function prototype and the function defi-nition?
What is pure virtual function?
Write about a nested class and mention its use?
What is a terminating character in c++?