Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

sir plz send me a set of questions that been frequently held in written examination during campus selection.

0 Answers   TCS,


what is ns string? what is ns array?

1 Answers  


#include <string.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort

0 Answers  


How is the using() pattern useful? What is IDisposable? How does it support deterministic finalization?

1 Answers   IntraLogic,


why c++ is called OOPS? waht is inherutance? what is compiler?

5 Answers  






WHY FUCTION OVERLOADING DOSENOT RETURN A RETEN TYPE

2 Answers  


is java purely oop Language?

49 Answers   HCL, Infosys, TCS,


what is Class in oops with example?

4 Answers   HCL,


What is this pointer in oop?

0 Answers  


what is pointers

7 Answers   Exilant,


Can we create object of class with private constructor?

5 Answers  


which is platform independent device used in computers

2 Answers  






Categories