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


Please Help Members By Posting Answers For Below Questions

What is a linked list in c++?

540


What is else if syntax?

673


Why c++ does not have finally?

585


an integer constant must have atleast one a) character b) digit c) decimal point

554


List the features of oops in c++?

569






What is the difference between C and CPP?

624


Does c++ have arraylist?

536


Is there a sort function in c++?

543


What is & in c++ function?

586


What is c++ and its features?

574


Why do we need function?

597


What is the difference between #import and #include in c++?

592


What is the main use of c++?

547


Is c++ primer good for beginners?

585


Explain the concept of friend function in c++?

599