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 / rahul yadav

wrong
structs can also contain functions in C++,
but in C, i ma not sure.
but since we are talking abot Class so we have to answer in
the context of C++,hence the answer is wrong.
only diff is of default variable scope.

Is This Answer Correct ?    37 Yes 27 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does nil mean in c?

1182


You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.

2277


How to set file pointer to beginning c?

1145


int i=10; printf("%d %d %d", i, i=20, i);

1548


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

1010


Did c have any year 2000 problems?

1062


What is data structure in c language?

1056


what is use of malloc and calloc?

1847


Explain how can type-insensitive macros be created?

954


What is huge pointer in c?

1022


Can we replace the struct function in tree syntax with a union?

1238


How are variables declared in c?

1027


write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)

2048


What is a void * in c?

1021


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

2040