what is the main difference between c and c++?

Answers were Sorted based on User's Feedback



what is the main difference between c and c++?..

Answer / namrata gupta

The main difference between c and c++ is that " C is a
structured programming language while C++ is an object
programming language and also we have templates in C++ that
is not the case in C

Is This Answer Correct ?    0 Yes 0 No

what is the main difference between c and c++?..

Answer / ajit kumar singh

The basis difference that c is structural Language and C++
is Object Oriented language addition with that C++ is super
set of c.
So C++ having all functionality that c have with addition
with Object Oriented functionality i.e Classes ,Operator
overloading etc.

So all other difference born from to fulfill these requirements.
So some c functionality is modify in C++ and some new added.

for example.
Modified :
1.In use of enum
2.In use of function
3.In size of Array
4. Type comaptibility
5.In use of Void pointer
6.Scope of Variable
7.Place of variable declartion
etc... You can find many more thing
Added new
1. Class
2. Reference variable
3.Dynamic initialization of variable
4. some more operator
5. new data type
6. new type of function (virtual ,friend,inline etc)
there are lot of minor difference and new...just check with
some good book....
but please don't pur misleading answer..

1.Class

Is This Answer Correct ?    0 Yes 0 No

what is the main difference between c and c++?..

Answer / megha sisode

C++ uses NAMESPACE which avoid name collisions. For
instance, two students enrolled in the same university
cannot have the same roll number while two students in
different universities might have the same roll number. The
universities are two different namespace & hence contain
the same roll number(identifier) but the same university
(one namespace) cannot have two students with the same roll
number(identifier)

Is This Answer Correct ?    0 Yes 0 No

what is the main difference between c and c++?..

Answer / t.saranya

c is structured programming language but c++ is object oriented programming language.
data is not secured in but c++ is data's are secured.
c does not support the c++program,but c++ support the c program.
c is low level language,but c++ is high level language.
c++ support operator overloading,c does not support.
c is top down,c++ is bottom up,

Is This Answer Correct ?    0 Yes 0 No

what is the main difference between c and c++?..

Answer / vishu

c is procedure oriented programming while c++ is object oriented programming,in c we use top to bottom approach and in c++ we use bottom to up approach

Is This Answer Correct ?    0 Yes 0 No

what is the main difference between c and c++?..

Answer / parvati

In "C" writting in class concept is not provided where as in
"C++" all the data members and member functions of similar
or dissimilar datatypes will be written.

Is This Answer Correct ?    0 Yes 0 No

what is the main difference between c and c++?..

Answer / c.rani

c is not object oriented
c++ is object oriented.
c is collections of functions
c++ is a collection of classes.

Is This Answer Correct ?    0 Yes 0 No

what is the main difference between c and c++?..

Answer / adu sharma

There is no data hiding in c
but in c++ there is data hiding

Is This Answer Correct ?    0 Yes 0 No

what is the main difference between c and c++?..

Answer / riddhi

c is d structed oriented lang and c++ is an object oriented
lang .
both have different i/o functions..
c doesn't hv classes and objects at all..
In c++ there is inheritance ....

Is This Answer Correct ?    0 Yes 0 No

what is the main difference between c and c++?..

Answer / vivek sagar jaiswal

*c is the procedure oriented programing.
c++ is the object oriented programing.

*c is the low level language.
c++ is the high level language.

*c is top-down approach
c++ is bottom-top approach.

*c is structured design
c++ is object oriented design .

*c does not deal with real world problems properly
eg. Maintaining a database.
while c++ deals with real world problems.

*In c we declare variable at the start of block...
In c++ we can declare it any where.....

*c the data can pass through the fuction to fuction.
Data is hidden and can’t be accessed by the external function.

*We can’t work with Class in C .
We can work with Class in C++ .
*c is not required acces
specifiers .
C++ is required acces
Specifiers .

*c has not inheritance concept .
c++ has inheritance concept .

*C can't support
of all function of C++.
C++ can support of all function of C

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

write a program in c++ to overload the function add (s1,s2) where s1 and s2 are integers and floating point values.

4 Answers  


what is difference between thread and programme.

1 Answers   NCC,


What is multiple inheritance?

9 Answers   TCS,


Why is there no multiple inheritance?

0 Answers  


What is overloading in oop?

0 Answers  






Advantage and disadvantage of routing in telecom sector

0 Answers  


string is a class or data type in java?

3 Answers  


What is the expansion of OOPS?

24 Answers   TCS,


What is public, protected, private?

6 Answers   IBS, Satyam,


create a class complex having real and imaginary part of a complex no. as a data member. overload the binary operators(+,- and *) to perform the operations on complex no. objects. overload binary operator using friend function.

2 Answers   CTS, Delhi University,


Why is polymorphism important in oop?

0 Answers  


write a progra in c++ using class & object to find out wheather a given no. is prim or not.

2 Answers  


Categories