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 / amit patel

Rsn answer is perfect write.Shivani you are wrong.
the visiblity of members default public in structure,
whereas in class its private as all know.
So please don't make myths here.

for the detail answer for explanation read the following link.

http://carcino.gen.nz/tech/cpp/struct_vs_class.php

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is rtti in c++?

1134


What are the vectors in c++?

1027


What do the keywords volatile and mean mutable?

1050


What is :: operator in c++?

1048


What is const in c++?

1102


Can you pass an array to a function in c++?

1000


When do we run a shell in the unix system? How will you tell which shell you are running?

974


What is the keyword auto for?

1033


Can we declare a base-class destructor as virtual?

1003


What is the fastest c++ compiler?

1100


How can I learn dev c++ programming?

1042


Describe private, protected and public – the differences and give examples.

1188


How the virtual functions maintain the call up?

1162


Name the implicit member functions of a class.

1077


Define macro.

1080