Interview Questions   Tutorials   Discussions   Programs   Videos   

C++ - What is the main difference between c and c++?

    Next Topic

asked marvit August 18, 2014 12:18 PM  

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


1 Answers

answered By bhjahnavi   0  
the major differences between c and c++ are as follows
  • c was developed by dennis richie  whereas c++ was developed by  Bjarne Stroustrup
  • c is procedure oriented programming language(POP) whereas c++ is object oriented programming language(OOP).
  • data abstraction is not possible in c language whereas it is possible using c++.
  • In case of C, the program is formulated step by step, each step is processed into detail while in C++, the base elements are first formulated which then are linked together to give rise to larger systems.
  • Functions are the building blocks of a C program while objects are building blocks of a C++ program.
  • overloading is possible in c++ but that is not possible in c.
  • C uses scanf & printf while C++ uses cin>> & cout<< as their respective input & output functions.
   add comment

Your answer

Join with account you already have



Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!