what is the main difference between c and c++?
Answer Posted / saraswathi
Difference between c and C++
C C++
1. C is a procedure oriented programming C++ is a object
oriented programming
2. C uses #include<stdio.h> C++ uses #include<iostream.h>
3. In C main focus is on functions In C++ main focus is on
data rather than functions. Data is not freely moved around
the system rather the functions exists in the object are the
only means by which the data can be accessed
4. In C No Data security In C++ data is hidden and is
secure from unauthorised access
5. In C there is no concepts like encapsulation,
polymorphism , inheritance etc. C++ provide encapsulation,
polymorphism, inheritance etc.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is difference between abstraction and encapsulation?
What are the two different types of polymorphism?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
What is the difference between abstraction and polymorphism?
What is abstraction with example?
any one please tell me the purpose of operator overloading
Why do we need oop?
What are functions in oop?
#include
What is abstraction in oops?
What is encapsulation and abstraction? How are they implemented in C++?
What does and I oop mean?
What are the important components of cohesion?
Can private class be inherited?
What is the fundamental idea of oop?