what isthe difference between c structure and c++ class

Answers were Sorted based on User's Feedback



what isthe difference between c structure and c++ class..

Answer / harshad khedekar

c does not allow struct data type to be treated like built-in datatype also it does not supports data hiding concept.in c++ instead of struct we have class which overcomes all the above limitations.

Is This Answer Correct ?    12 Yes 0 No

what isthe difference between c structure and c++ class..

Answer / kapil

c does not have templates,c++ has templetes

Is This Answer Correct ?    3 Yes 1 No

what isthe difference between c structure and c++ class..

Answer / jeremiah

The default scope of a C struct is public, whearas the
default scope of a C++ class is private.

Is This Answer Correct ?    3 Yes 1 No

what isthe difference between c structure and c++ class..

Answer / amarnath

Construtor is not in c strut and present in c++ class

Is This Answer Correct ?    4 Yes 3 No

what isthe difference between c structure and c++ class..

Answer / a.sivasakthi

c structure are only define the data and data types
C++ class are define the data and solve the function the
both process are solved to the c++ class

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More OOPS Interview Questions

Write an operator overloading program to Overload ‘>’ operator so as to find greater among two instances of the class.

1 Answers  


What do you mean by inline function?

6 Answers  


write a program which best describes polymorphism in real world?

2 Answers   CTS, Infosys, NexGen,


What is oops and its features?

0 Answers  


Which is faster post increment or pre increment ? and in which cases should u use either - to increase speed?

4 Answers   EA Electronic Arts,






What is the significance of classes in oop?

0 Answers  


Round up a Decimal number in c++.. example Note = 3.5 is as 4 3.3 is as 3

3 Answers   Accenture, Cognizant, IBM,


What is difference between function overloading and overriding?

1 Answers   emc2,


What is multilevel inheritance?

0 Answers  


Difference between realloc() and free?

9 Answers   HP,


what is the difference b/w abstract and interface?

2 Answers   Merrill Lynch, Schneider, Scio Healthcare,


What is a friend function & its advantage?

2 Answers   TCS,


Categories