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
How does the copy constructor differ from the assignment operator (=)?
How java is different from c and c++?
What do you mean by const correctness?
What new()is different from malloc()?
What is the use of this pointer in c++?
Eplain extern keyword?
Why we use #include conio h in c++?
Write a program to find the reverse Fibonacci series starting from N.
What is virtual table?
What is array give example?
Does c++ have string data type?
how to connect with oracle 9i with server in socket program in c/c++
What is static function? Explain with an example
Why c++ is created?
What are different types of loops in c++?