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 the full form of ios?

564


How would you use the functions randomize() and random()?

637


Define the process of handling in case of destructor failure?

586


What is a null object in c++?

646


What is the best c++ compiler?

598






How is new() different from malloc()?

641


How can I learn c++ easily?

634


Can char be a number c++?

606


Write a program to concatenate two strings.

599


Which sort does c++ use?

586


Why is c++ considered difficult?

657


Which bit wise operator is suitable for turning off a particular bit in a number?

651


What is the difference between the parameter to a template and the parameter to a function?

650


What is the best c++ book?

720


daily Routine of father

921