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 / mohan chaudhari

1.In structure there is no data encapsulation.
but in class, there is data encapsulation.
2.Data member in structure are not private .
In class they are private.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a lvalue

1146


What is the difference between the local variable and global variable in c?

1015


What are the application of void data type in c?

1231


How can I swap two values without using a temporary?

1155


What is the purpose of void in c?

1107


Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1147


Why array is used in c?

1062


What does *p++ do?

1076


Write a code of a general series where the next element is the sum of last k terms.

1092


Do pointers take up memory?

1207


What is malloc() function?

1233


What does 3 periods mean in texting?

1132


What does the c in ctime mean?

1160


What is the stack in c?

1226


In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.

1911