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 Struct?

Answer Posted / manju

The only difference between class and struct is that

in class all members are private by default whereas in

struct the members are by default public.

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

1219


Why is c called a mid-level programming language?

1189


What are the preprocessor categories?

1041


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

1054


Which header file is used for clrscr?

1042


i want to know the procedure of qualcomm for getting a job through offcampus

2450


What are the features of c language?

1057


Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)

1261


What is variable in c example?

1045


What is cohesion in c?

965


Explain how can a program be made to print the name of a source file where an error occurs?

1180


What is sizeof int?

1075


Explain what is meant by high-order and low-order bytes?

1036


What is the purpose of realloc()?

1124


Explain what is a pragma?

1030