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

How can I rethow can I return a sequence of random numbers which dont repeat at all?

718


What are c preprocessors?

687


What does struct node * mean?

610


what do you mean by inline function in C?

628


count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array

687






What are structure members?

605


why return type of main is not necessary in linux

1712


What are the 4 types of organizational structures?

635


Explain the red-black trees?

615


What is the use of #include in c?

589


what is uses of .net

1283


How can I write functions that take a variable number of arguments?

635


Explain what does the format %10.2 mean when included in a printf statement?

793


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

1679


When should we use pointers in a c program?

643