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 |
What are main features of oop?
How can i write a code in c# to take a number from the user and then find all the prime numbers till the number entered by the user.
What is variable example?
What is a class and object?
can you give the dynamic polymorphism types?
What is encapsulation in oops?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is inheritance write a program to show use of inheritance?
C#.net Interview Question A=10 B=5 C=A+B Print C The above will be given in a multiline textbox. You need to parse the above input, store values for A,B&c. And you have to display the value of C.
Given two strings like x=?hello? and y=?open?, remove any character from string x which is also used in string y, thus making the result x=?hll?.
What is the difference between declaration and definition?
write a c++ program to find maximum of two numbers using inline functions.