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 Class and Structure?

Answer Posted / nikhil jain

Structures are value types; classes are reference types.
Structures use stack allocation; classes use heap
allocation.

A structure must have at least one nonshared variable or
event member; a
class can be completely empty.

Is This Answer Correct ?    4 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1054


Why do you use the namespace feature?

1135


When one must use recursion function? Mention what happens when recursion functions are declared inline?

1238


Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

1046


what does the following statement mean? int (*a)[4]

1138


Is java the same as c++?

1036


Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.

1113


What should main() return in c and c++?

1073


Do you need a main function in c++?

1166


What is the use of register keyword with the variables?

976


Which programming language's unsatisfactory performance led to the discovery of c++?

1398


What is bubble sort c++?

1064


Explain all the C++ concepts using examples.

1254


What is c++ used for in games?

1240


Difference between pointer to constant vs. Pointer constant

1212