Articles

Difference between C and C++

Difference between C and C++


In this c++ interview question we will learn:

  • difference between c and c++

Programming languages like C and C++ has been there for decades and both C and C++ programming are used for application developement.

 

There arise questions in minds of beginner that which one should they pick up and learn for project.

 

To short out that query, we should be aware of the difference between c and c++ so that best one could be picked up for the project based on our requirement.

 

The following are the main difference between c and c++.

 

Sr. No.

                        C

                 C++

    1.

C is procedure oriented language (POP).

C++ supports both procedure (POP) and object-oriented programming properties (OOP).

     2.

C is function driven language.

C++ is object driven language.

      3.

C does not provide OOPs support.

C++ provide support of OOPs.

      4.

Data is free entity for this language and can be taken from outside.

Due to the property of encapsulation (comes under OOPs) C++ has data security.

       5.

Direct exception handling is not there in C.

Exception handling is present in C++.

       6.

C language is method focused.

C++ is data focused for operations.

       7.

Built-in data types are in C language.

C++ has built-in data types also have user defined data types.

Learn difference between java and c++ here

Learn difference between oop and pop here


cpp interview questions

Would you like to see your article here on tutorialsinhand. Join Write4Us program by tutorialsinhand.com

About the Author
Subhajit Guha Thakurta
Page Views :    Published Date : Jan 16,2021  
Please Share this page

Related Articles

Like every other website we use cookies. By using our site you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service. Learn more Got it!