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

What is double pointer in c?

984


How to get string length of given string in c?

1010


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2402


Explain what are run-time errors?

1037


Why does notstrcat(string, "!");Work?

1084


What does the c preprocessor do?

1050


What is the purpose of type declarations?

1077


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

1722


writ a program to compare using strcmp VIVA and viva with its output.

1976


Explain how do you use a pointer to a function?

1054


When should a type cast not be used?

1005


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

2136


Explain what is the benefit of using an enum rather than a #define constant?

1168


in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above

1016


Is null a keyword in c?

1139