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 does c mean in basketball?

999


Why are all header files not declared in every c program?

1107


#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }

1160


Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.

3112


What is pointer to pointer in c language?

1158


What would be an example of a structure analogous to structure c?

1001


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

1124


An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

1171


What is static identifier?

1225


Sir i need notes for structure,functions,pointers in c language can you help me please

2422


What is volatile c?

1023


What is main return c?

1005


What is methods in c?

1101


What is .obj file in c?

1088


what is the difference between class and unio?

2369