whats the difference between c and c++

Answer Posted / vishi

in c++ we can do nesting,inheritance which is not possible
in c.objects and classes are present in c++ not in c.

Is This Answer Correct ?    18 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstraction encapsulation?

647


what are the realtime excercises in C++?

2328


What does oop mean in snapchat?

675


Why do we use encapsulation in oops?

512


#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

2056






What are oops functions?

575


What is cohesion in oop?

610


Are polymorphisms mutations?

691


How many human genes are polymorphic?

564


What is oops in programming?

558


Why do pointers exist?

651


What is overloading in oops?

591


What are the data types in oop?

596


What is encapsulation c#?

597


Is data hiding and abstraction same?

563