0% found this document useful (0 votes)
15 views2 pages

C VS C++

The document compares C and C++ programming languages, highlighting that C is procedural while C++ is multi-paradigm, supporting both procedural and object-oriented programming. Key differences include C++'s support for function overloading, reference variables, operator overloading, and inheritance, as well as its use of streams for input/output and exception handling features. Additionally, C++ provides access modifiers for class members and the concept of namespaces, which are not available in C.

Uploaded by

suganya.cse
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views2 pages

C VS C++

The document compares C and C++ programming languages, highlighting that C is procedural while C++ is multi-paradigm, supporting both procedural and object-oriented programming. Key differences include C++'s support for function overloading, reference variables, operator overloading, and inheritance, as well as its use of streams for input/output and exception handling features. Additionally, C++ provides access modifiers for class members and the concept of namespaces, which are not available in C.

Uploaded by

suganya.cse
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

No.

C C++

C follows the procedural style C++ is multi-paradigm. It supports


1)
programming. both procedural and object oriented.

In C++, you can use modifiers for class members


2) Data is less secured in C.
to make it inaccessible for outside users.

3) C follows the top-down approach. C++ follows the bottom-up approach.

4) C does not support function overloading. C++ supports function overloading.

5) In C, you can't use functions in structure. In C++, you can use functions in structure.

6) C does not support reference variables. C++ supports reference variables.

In C, scanf() and printf() are mainly used C++ mainly uses stream cin and cout to perform
7)
for input/output. input and output operations.

8) Operator overloading is not possible in C. Operator overloading is possible in C++.

C programs are divided into procedures C++ programs are divided into functions and
9)
and modules classes.

C does not provide the feature of


10) C++ supports the feature of namespace.
namespace.
Exception handling is not easy in C. It has C++ provides exception handling using Try and
11)
to perform using other functions. Catch block.

12) C does not support the inheritance. C++ supports inheritance.

You might also like