what is the main difference between c and c++?
Answers were Sorted based on User's Feedback
Answer / sameer
->C is a procedural programing language and c++ is a object
oriented programing language.
->C does not allow operator and function overloading.
C++ can allows function and operator overloading
| Is This Answer Correct ? | 1 Yes | 3 No |
Answer / sushant
c++ supports data hiding/data encapsulation while c does not
| Is This Answer Correct ? | 3 Yes | 5 No |
Answer / harsha
C has just the letter C... while C++ has more than just C...
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / heera singh
c is the object based programming language,
c++ is a Obect oriented programming language.
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / a.sivasankar
i)C++ is an pure object oriented program language.
ii)c++ is an bottom up approach but c is an top down approach
ii)In c++ using classes and object but not in c.
iv)In c++ one of main advantage reusability, we can deriving
the propertis from one class to another but not in c
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / narasimharao.v.v
The main Difference between C & CPP is,
1. C is a procedure oriented programming language, Where as CPP is an object oriented programming language.
2. C follows top down approach, where as CPP follows bottom up approach.
3. C= BCPL + B
4. CPP = C+ simula67.
5. C is not providing more security to the data. But cpp provides more security to the data than C.
6. CPP supports the object oriented features like Class, Object, Polymorphism, Inheritance etc. But C does not supports Object oriented features.
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / suraj pisal
operating system is desined in c & objects in operating
system is c++ therefor it is the object oriented prog & c
is not....
SAMAJ JANA ABHI YAAAR
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / sachin rajput
1)c is more faster than c++.
2)c is top to bottom but c++ vice-versa.
3)c is based on pops concepts but c++ is based on oops concepts.
4)c++ is secure language but c is not.
5)emphasis is on data rather than procedure in c++ but in case of c it is just opposite.
| Is This Answer Correct ? | 5 Yes | 8 No |
create a class complex having real and imaginary part of a complex no. as a data member. overload the binary operators(+,- and *) to perform the operations on complex no. objects. overload binary operator using friend function.
2 Answers CTS, Delhi University,
What is inheritance in simple words?
difference between static and non-static variables?
different types of castings
Precompilation ?
What is this interview room ? Is it a class or an object.
Is abstract thinking intelligence?
why constructor cannt be declar virtually? why destructor cannt be overloaded?
Why is polymorphism needed?
What is class and object in oops?
What are the three parts of a simple empty class?
what is the difference between inter class and abstract class...?