what isthe difference between c structure and c++ class

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Who invented oop?

736


What is difference between oop and pop?

717


What is oops in simple words?

693


Can you inherit a private class?

734


Why do while loop is used?

660






What do you mean by Encapsulation?

728


What is abstraction in oop?

726


write knight tour problem which is present in datastructure

2246


What is polymorphism what is it for and how is it used?

651


What is a function in oop?

717


#include #include #include #include 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

2167


What is the significance of classes in oop?

678


What is multilevel inheritance explain with example?

731


c++ program to swap the objects of two different classes

1904


What is difference between inheritance and polymorphism?

668