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 b/w Structure & Class?

Answer Posted / alekhya

1.in structure we have only data members where as
in class we have members and member functions
2.in class we declare members with access specifiers like
private,public...
in structs we dont have any access specifiers all the
members of structure are pubic

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }

1280


What is the best way of making my program efficient?

1032


What is the purpose of main() function?

1249


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

1142


What is structure of c program?

1165


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

2096


Explain what does it mean when a pointer is used in an if statement?

1064


What is maximum size of array in c?

1043


Why c is called a middle level language?

1111


to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?

2180


How can I sort a linked list?

1049


What is this infamous null pointer, anyway?

1054


Explain how do you convert strings to numbers in c?

1080


Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?

1088


explain what is an endless loop?

1082