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...

Difference between Class and Struct.

Answer Posted / praveena.g

class ex:-
class classname
{
int a;
float b;
}
struct {
int a;
int b;
}struct name;

in the struct all members are by default public,
in the class we can deference it private,public,protected.
like these we class will taken.

Is This Answer Correct ?    62 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define macros.

1273


What is the data segment that is followed by c?

1092


What is mean by data types in c?

1032


What is bin sh c?

1046


Where are c variables stored in memory?

1071


Explain how does flowchart help in writing a program?

1119


What is the use of #define preprocessor in c?

1081


What is table lookup in c?

1100


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

2325


How do I convert a string to all upper or lower case?

1122


What is the purpose of sprintf?

1136


What are global variables and explain how do you declare them?

1106


What is wrong with this statement? Myname = 'robin';

1327


Are there any problems with performing mathematical operations on different variable types?

1040


What are pointers in C? Give an example where to illustrate their significance.

1227