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 / daxini

Static :
A static variable is defined for the class itself and exists independently of any object of that class.
non-static:
a non static variable is defined for object of the class thus it is bound to an instance of its class

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c++ slower than c?

1105


Name four predefined macros.

1104


What is the difference between the functions rand(), random(), srand() and randomize()?

1360


Why iomanip is used in c++?

1176


What is the difference between global variables and local variable

1117


Why is the function main() special?

1145


Why is c++ so fast?

1086


What is iterator c++?

1038


What are 2 ways of exporting a function from a dll?

1275


Write about the stack unwinding?

1119


What data encapsulation is in c++?

1242


What is the importance of mutable keyword?

1076


Do the names of parameters have to agree in the prototype, definition, and call to the function?

1079


What is a storage class used in c++?

1134


Differentiate between C and C++.

1324