what is difference between static and non-static variables
Answer Posted / sengar
static variable will not be change value all time but non
static value can be changed according requirement .
without giving any value static variable automatically
initialize by zero but in non-static case not the same
case.
Is This Answer Correct ? | 11 Yes | 2 No |
Post New Answer View All Answers
What is a multiset c++?
What is the use of map in c++?
What are pointer-to-members? Explain.
Difference between Abstraction and encapsulation in C++?
What is #include iostream in c++?
What is a pointer how and when is it used?
Why do we use classes in programming?
What is the full form of ios?
How do I get good at c++ programming?
What is the extraction operator and what does it do?
What is private public protected in c++?
Is java as fast as c++?
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?
How to defines the function in c++?
What does I ++ mean in c++?