what is the main difference between c and c++?

Answer Posted / kavitha

c is the structure oriented and c++ is the object oriented
language

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is cohesion in oop?

624


Which language is pure oop?

551


What are objects in oop?

610


What are the benefits of oop?

607


What is the diamond problem in inheritance?

579






Why do we use oops?

593


What is polymorphism programming?

605


Can a destructor be called directly?

605


What is oops and its features?

591


What is encapsulation in oop?

609


What is abstraction with example?

607


#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

2070


What is polymorphism what are the different types of polymorphism?

566


write string class as your own class in java without using any built-in function

1978


What do you mean by overloading?

582