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

What is array give example?

983


What is the full form of dos?

1046


What are compilers in c++?

1019


What are the 3 levels of programming languages?

991


What is scope resolution operator in c++ with example?

973


What do you understand by zombie objects in c++?

1035


Explain polymorphism?

1028


How can you say that a template is better than a base class?

1022


Which one is better- macro or function?

1122


What is format for defining a structure?

1025


Is rust better than c++?

1054


Is c++ free?

1032


What are guid?

1177


Is it possible to have a recursive inline function in c++?

976


How the delete operator differs from the delete[]operator?

1047