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 the difference between struct and class?



What is the difference between struct and class?..

Answer / hrpynux@gmail.com

Structs are value type whereas Classes are reference type. Structs are stored on the stack whereas Classes are stored on the heap. Value types hold their value in memory where they are declared, but reference type holds a reference to an object memory.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Explain one-definition rule (odr).

0 Answers  


Write about the role of c++ in the tradeoff of safety vs. Usability?

0 Answers  


i have given a project to create examination seating plan system in c++. so can anyone send me the answer of this question quickly??????

1 Answers  


What is abstract keyword in c++?

0 Answers  


Live example for static function?

1 Answers   Infosys,


How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?

0 Answers  


What does std :: flush do?

0 Answers  


Does std endl flush?

0 Answers  


When to use Multiple Inheritance?

6 Answers  


What do you understand by a pure virtual member function?

0 Answers  


What is runtime errors c++?

0 Answers  


What is a hash function c++?

0 Answers  


Categories