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

Answer Posted / kakkar & kainth

=> c is procedural as well as structured language while c++
is procedural and object oriented.
=> c++ is an extension of c.
=> various i/o functions in c++ are performed using
iostream.h while in c it is done through stdio.h.
=>instead of scanf,cin>> is used in c++ and instead of
printf, cout<< is used in c++.
=>c is top down approach while c++ is bottom up approach.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1662


How is polymorphism achieved?

587


Why do we use encapsulation in oops?

529


What is purpose of inheritance?

651


Why oops is important?

616






What is encapsulation oop?

581


any one please tell me the purpose of operator overloading

1973


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1401


What is the example of polymorphism?

564


What causes polymorphism?

581


What is pure oop?

603


What is a function in oop?

637


program for insertion ,deletion,sorting in double link list

2285


can inline function declare in private part of class?

3666


What is overloading and its types?

624