what is difference between static and non-static variables
Answer Posted / narender vadhava
static variables have their fix values within a program but
in case of non-static variables their values are changable
within the same program.
syntax of static variable:-
static int s;
while
non static variables declared only by using general basic
data type.
as:-
int s;
| Is This Answer Correct ? | 14 Yes | 12 No |
Post New Answer View All Answers
What is #include iostream in c++?
How can I improve my c++ skills?
Do you know what are pure virtual functions?
What is c++ namespace?
What are the comments in c++?
Is it possible to pass an object of the same class in place of object reference to the copy constructor?
Why c++ is called oop?
What is the v-ptr?
We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?
How is modularity introduced in C++?
What is the best c++ ide?
What is format for defining a structure?
Describe the syntax of single inheritance in C++?
What is the use of endl in c++ give an example?
What is iterator c++?