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

What is the use of turbo c++?

0 Answers  


What are member functions used in c++?

0 Answers  


Why null pointer is used?

0 Answers  


Explain method of creating object in C++ ?

0 Answers   Wipro,


Difference between Constructors and static constructors?

3 Answers   IBM, TCS,


What is the difference between the compiler and the preprocessor?

0 Answers  


Define linked lists with the help of an example.

0 Answers  


What are the advantages of pointers?

0 Answers  


What are friend classes? What are advantages of using friend classes?

0 Answers  


What is setfill c++?

0 Answers  


How the keyword struct is different from the keyword class in c++?

0 Answers  


How would you find out if a linked-list is a cycle or not?

0 Answers  


Categories