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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

can inline function declare in private part of class?

3653


What do you mean by Encapsulation?

637


Why do we use encapsulation in oops?

518


What is coupling in oop?

590


What is meant by multiple inheritance?

732






If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

939


What type of loop is a for loop?

682


What is abstraction in oops with example?

766


Get me a number puzzle game-program

1690


Why do we use polymorphism in oops?

575


What is difference between abstraction and encapsulation?

586


Why is oop better than procedural?

600


How can you overcome the diamond problem in inheritance?

763


How is polymorphism achieved?

581


What is difference between data abstraction and encapsulation?

613