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

Answer Posted / sricharan

>> C << >> C++ <<

1> Basically it is an 1> It is an Object oriented
procedure oriented known as OOPS

2> It is an Top-Down 2> It is an Bottom-Up
approach approach

3> syntax ->#include<stdio.h> 3> #include<iostream.h>

4>Here we use Print f & scan f 4> Here we use cout and cin
statements statements

5>Mainly Focus on procedure 5> Mainly Focus on Data

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is polymorphism explain its types?

688


#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 the problem with multiple inheritance?

586


What is polymorphism explain?

693


What polymorphism means?

624






What is pointer in oop?

541


What is this pointer in oop?

557


What is abstraction encapsulation?

661


What language is oop?

597


What is the difference between static polymorphism and dynamic polymorphism?

587


What are the three main types of variables?

602


What is difference between pop and oop?

609


What is object-oriented programming? Webopedia definition

727


any one please tell me the purpose of operator overloading

1967


Why do we use oops?

593