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 are the three main types of variables?
What is the highest level of cohesion?
why overriding?
what is the technical or oop name of object?
What is a null tree?
what is difference between thread and programme.
what is difference between class template and template class?
What is polymorphism and its types?
Advantage and disadvantage of routing in telecom sector
What is the types of inheritance?
What is friend function?
what is the sylabus for priliminaries?