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
Why we use #include conio h in c++?
Can you please explain the difference between static and dynamic binding of functions?
Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.
Does c++ have string data type?
What are the benefits of c++?
What are activex and ole?
Write about the stack unwinding?
What is constructor in C++?
What apps are written in c++?
What is a pdb file?
When is the destructor called?
What is class in c++ with example?
How are virtual functions implemented in c++?
Write a program to add three numbers in C++ utilizing classes.
Can member functions be private?