what is difference between static and non-static variables
Answer Posted / sv
static variable retains its value like a global variable,
but visible with in the scope.
While non static variable will not be retained one it come
out of the scope or block. Again the visibility is local to
the block.
| Is This Answer Correct ? | 53 Yes | 8 No |
Post New Answer View All Answers
What are pointer-to-members in C++? Give their syntax.
What is the purpose of ios::basefield in the following statement?
Does c++ have a hash table?
Which c++ compiler is best?
What are inline functions? What is the syntax for defining an inline function?
What is a namespace in c++?
What is the difference between global int and static int declaration?
What is an object in c++?
What is a linked list in c++?
How does java differ from c and c++?
Is facebook written in c++?
What is the this pointer?
What is object file? How can you access object file?
Explain differences between new() and delete()?
What is a static element?