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 / ajay prajapat

1. Structure is value type where is class is refrance
type.So class data is store in heap where as stuct data are
store in stack.

2. default type of function in struct is public where as
private in class

Is This Answer Correct ?    55 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are 3 types of structures?

1063


What is the use of sizeof?

1013


why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

1759


What are examples of structures?

1104


What is the purpose of clrscr () printf () and getch ()?

1066


Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?

1497


Does c have class?

1107


What is #line in c?

1014


How can I remove the leading spaces from a string?

1155


while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above

1238


How are Structure passing and returning implemented by the complier?

1166


How to Throw some light on the splay trees?

1062


Explain what are header files and explain what are its uses in c programming?

1153


How do I swap bytes?

1067


Explain the difference between malloc() and calloc() function?

1042