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
Write a program to reverse a string using recursive function?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
How long to learn object oriented programming?
2. Give the different notations for the class.\
Is this job good for future? can do this job post grduate student?
What is interface in oop?
Which is not an object oriented programming language?
Is html an oop?
What does I oop mean?
What is destructor in oop?
Can we override main method?
Why polymorphism is used in oops?
write string class as your own class in java without using any built-in function
Why do we use oops?
What is pure oop?