Tuesday, 2 July 2013

C vs C++

Hello friends! Today we have to see about the most familiar programming languages C and C++.

According to my point of view 

1.C is a rock star.2.C++ is a collection of super heroes.

Basically C++ is Derives from C.We will see the differences between the C and C++.The battle starts Now.



  • C is a Procedural Language but C++ is an Object Oriented Language.
  • No Virtual Functions are present in C But C++ the concept of Virtual Function is used.
  • The concept of Polymorphism is not used in C but One of the most important Feature of C++ is Polymorphism.
  • Operator Overloading is Not possible in C but it is the greatest feature of C++.
  • C is a Top Down Approach.C++ is a Bottom Up Approach.

  • In C We can call main() Function through other Functions But It is not possible in C++.
  • Mapping between data and functions is difficult in C.In C++ Mapping between data and functions are handled through "Objects".

  • Multiple Declarations of global variables are allowed in C but It is Not possible in C++.
  • In  C Exception Handling is Not Present.In C++ Exception Handling is possible through Try and Catch block.
  • No Namespace Feature is Present in C.In C++ It will be Possible to avoid Name collisions.





No comments: