difference between c and c++?

Answer Posted / sumanth

c is procedure oriented language and gives importance to
procedure that is functions rather than data.c is middle
level language.
c++ is object oriented language and gives importance to
object that is data
c++ is high level language
c++ havig extra benifits data can hide in the fuction
(encapsulation),polymorphism,templets,file
handeling,inharitance.
c is structured design,c++ is object oriented design
c is top-down approach,c++ is bottom-top approach
c++ is required acces specifiers,c is not required acces
specifiers
c++ is client server model
In c++,there is a new concept of "INLINE FUNCTIONS",
whereas in c, there are macros.
C++ is a object oriented language but C is not OOPS.

Is This Answer Correct ?    23 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When there is a global variable and local variable with the same name, how will you access the global variable?

614


What is stl containers in c++?

579


What are the rules for naming an identifier?

551


What are the 3 levels of programming languages?

529


What is the difference between an array and a list?

579






Explain how to initialize a const data member.

589


What is #include cmath?

655


What is the difference between an enumeration and a set of pre-processor # defines?

824


What is the difference between equal to (==) and assignment operator (=)?

573


You want to link a c++ program to c functions. How would you do it?

535


Do you know the use of vtable?

627


Is swift faster than c++?

557


What programming language should I learn first?

582


What does scope resolution operator do?

590


Differentiate between late binding and early binding.

636