what is the main difference between c and c++?
Answers were Sorted based on User's Feedback
Answer / tamil
C gives importance to procedure. That is functions rather
than data. The main function couldnot return a value. It is
dont support c++ programme.
C++ gives importance to object that is data. The main
function should return a value. It is support c programme.
C is a procedural Language, but C++ is a object oriented
language.
* C employs top down approach, but c++ employes buttom up
approach.
* Here in C, when ever we are writing a program, the data
are not secured from the outside world. but in C++ data are
secured from the outside world.
* C give emphasis in algorithims and functions, but C++
give emphasis on the data and objects.
* In C we are using #include<stdio.h> as header file, but
in C++ we are using #include<iostream.h> as header file.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / kalyan
1) C is structured programming language , where as C++ is
Object Oriented programming language.
2) In C we declaration at begging of program,where as in c++
any where in program.
3) C has only 32 keywords ,where C++ 32 keywords pules
Public,private,protected,class.
4) C not support Exception Handling,where as C++ support
exception handling.
5) In C global variable and local variable are not
differentiate , where as in C++ differentiate using
Scope Resulation (::) operator .
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nethajiprasath
c is procedural oriented language
c++ is object oriented language....
c++ add the features of
class,object,inheritence,polymorphism,operator
overloading,function overloading..
simply c++ is a extension of c
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ramya priyanka
c is top down approach bcoz after creating the logic we use the data to access related to it,but in c++ bottom up approach
bcoz from the data bases we create the logic and access it.....and this is the difference between c & c++
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / gyanendra pandey
1-clanguage is not object orinted language but c++
is object orinted lenguage'
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / mahadevaswamy
c is a pop,c++ is oop.
c is use scanf func for input,while c++ use cin>>.
c is use printf func for output,while c++ use cout<<.
c comes after A,B and c++ comes after adding ++ in c.
c use #include<stdio.h> while c++ use #include<iostream.h>.
c is topdown approach and while c++ is bottom up.
c the main prg couldn't return vslue but c++ should return
value.
c++ support operator overloading but c doesn't support
overloading .
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / mahila
c is procedural language, but c++ is object oriented language
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / rohan
The basic difference b/t c&c++ is that c uses function where as c++ uses class.
c is top down approach where as C++ uses bottom up approach.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nishant kumar
c is a structural programming language but c++ is oops language.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is abstraction with example?
What is stream in oop?
What is polymorphism what are the different types of polymorphism?
What is encapsulation in ict?
hi all..i want to know oops concepts clearly can any1 explain??
How do you define social class?
what is runtime polymorphism? For the 5 marks.
#include <string.h> #include <stdio.h> #include <stdlib.h> #include<conio.h> void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort
What is encapsulation oop?
What is Virtual Keyword?
Is react oop?
In c++ there is only virtual destructors, no constructors. Why?