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

Explain storage qualifiers in c++.

1083


What apps are written in c++?

1102


Explain operator overloading.

1066


Differentiate between structure and class in c++.

1090


How a new element can be added or pushed in a stack?

1020


which operator is used for performing an exponential operation a) > b) ^ c) none

1064


How to access a variable of the structure?

1096


Explain differences between alloc() and free()?

1140


Is it possible to have a recursive inline function in c++?

1032


What are the operators in c++?

1119


Why do we need function?

1057


Is c++ the best programming language?

1023


why and when we can declar member fuction as a private in the class?

2079


Explain the uses of static class data?

1111


What is & in c++ function?

1064