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 are oops methods?
What is polymorphism in oop example?
What is ambiguity in inheritance?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
What are the benefits of polymorphism?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
Which is better struts or spring?
What is a null tree?
What is polymorphism what is it for and how is it used?
What does and I oop and sksksk mean?
Can abstract class have normal methods?
What is new keyword in oops?
What is encapsulation in simple terms?
When not to use object oriented programming?
what are the ways in which a constructors can be called?