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 are the differences between a struct and a class in
C++?

Answer Posted / supriya

Memory is alloated on Stack using Structure whereas in class its heap , that is it wont be stored at an contagious memory location.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are default parameters? How are they evaluated in c++ function?

1172


What is the difference between an array and a list?

1034


How would you call C functions from C++ and vice versa?

1174


What things would you remember while making an interface?

1006


What are the stages in the development cycle?

1065


In inline " expression passed as argument are evalauated once " while in macro "in some cases expression passed as argument are evaluated more than once " --> i am not getting it plz help to make me understand....

2423


Who made c++?

1089


Why do we use double in c++?

1073


what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?

2359


What is the use of bit fields in structure declaration?

987


Does c++ cost money?

996


What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?

1058


Is it possible to provide default values while overloading a binary operator?

1268


Is c++ used anymore?

1096


How do we implement inheritance in c++?

1132