Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.

1319


How do you flush a buffer in c++?

1094


Is c++ low level?

1030


Define the process of handling in case of destructor failure?

1053


What is the best c++ book for beginners?

1145


Differentiate between late binding and early binding. What are the advantages of early binding?

1028


How can you differentiate between inheritance and implementation in c++?

1209


Write an algorithm that determines whether or not an almost complete binary tree is a heap.

3907


What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)

1048


Define a nested class. Explain how it can be useful.

1079


What is ctime c++?

1123


Discussion on error handling of C++ .

1118


What is implicit pointer in c++?

1074


Differentiate between a pointer and a reference with respect to c++.

1237


How would you implement a substr() function that extracts a sub string from a given string?

1036