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 is c++ & why it is used?
Why c++ is faster than java?
How is objective c different from c++?
which of the following is not an secondary constant a) array b) real c) union
What is using namespace std in cpp?
Explain deep copy?
If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?
How would you use the functions sin(), pow(), sqrt()?
When to use “const” reference arguments in a function?
What are manipulators in c++ with example?
What are all predefined data types in c++?
What are register variables?
Can we get the value of ios format flags?
What is capacity in vector in c++?
How do we implement inheritance in c++?