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 / naksh @tcs

The major difference between struct and class is :
Struct donot contain functions(methods) as its members.

Yes, by default members of struct are public and that of a
class are private.

Is This Answer Correct ?    33 Yes 79 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜n’ element.

2111


Explain what is meant by 'bit masking'?

1198


What is the difference between void main and main in c?

1156


Why clrscr is used after variable declaration?

1689


Explain bitwise shift operators?

1251


If fflush wont work, what can I use to flush input?

1106


Is c easy to learn?

985


stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

2469


Which are low level languages?

1098


What is nested structure in c?

1066


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

1122


Is null always equal to 0(zero)?

1037


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1978


What is difference between && and & in c?

1107


How can I read a binary data file properly?

1175