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

What's the full form of STL?

2 Answers  


What is differance between Abstract and Interface

3 Answers  


write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

0 Answers   Wipro,


why to use template classes in c++?

1 Answers  


In which Scenario you will go for Interface or Abstract Class?

1 Answers   InfoAxon Technologies,






design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

0 Answers   UBS,


write a program in c++ to overload the function add (s1,s2) where s1 and s2 are integers and floating point values.

4 Answers  


How many human genes are polymorphic?

0 Answers  


ambiguity regulation of multiple inheritance with example.

1 Answers  


define a string class. overload the operator == to compare two strings

2 Answers   Birla, Ericsson, HCL, Infosys, Infotech, MCAS, Satyam,


why reinterpret cast is considered dangerous?

0 Answers   TCS,


What is a friend function & its advantage?

1 Answers   MIT,


Categories