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 polymorphism and types?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
What are the types of abstraction?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
What is difference between oop and pop?
What is abstraction in oops?
Write a c++ program to display pass and fail for three student using static member function
Why interface is used?
What is encapsulation in oop?
program for insertion ,deletion,sorting in double link list
What is overriding vs overloading?
How do you achieve polymorphism?
any one please tell me the purpose of operator overloading
write knight tour problem which is present in datastructure
What is abstract class in oops?