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 operators in c++?
Explain the operation of overloading of an assignment operator.
What is name hiding in c++?
What things would you remember while making an interface?
Can we declare a base-class destructor as virtual?
Why do we use double in c++?
What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass
Why is c++ so fast?
What is near, far and huge pointers? How many bytes are occupied by them?
What is abstraction in c++ with example?
an operation between an integer and real always yeilds a) integer result b) real result c) float result
Which one between if-else and switch is more efficient?
What is c++ mutable?
How do I use arrays in c++?
Can union be self referenced?