Difference between C and C++ | Forum Get link Facebook X Pinterest Email Other Apps August 28, 2020 C VS C++ : Get link Facebook X Pinterest Email Other Apps Comments Raven28 August 2020 at 21:06KEY DIFFERENCE:-1) C is a Procedural Oriented language, whereas C++ is an Object-Oriented Programming language.2) C supports only Pointers whereas C++ supports both pointers and references.3) C does not allow you to use function overloading whereas C++ allows you to use function overloading.4) C supports built-in data types whereas C++ supports built-in as well as user-defined data types.5) C language follows the Top-Down programming approach whereas C++ follows a bottom-up programming approach.6) C scan and printf are used for the standard input and output while in C++, cin and cout are given for standard input and output operations. ReplyDeleteRepliesAnonymous28 August 2020 at 21:07Wow!! That's really good.Thanks a lot.DeleteRepliesReplyRaven28 August 2020 at 21:08You are most welcome. :-)DeleteRepliesReplyReplyTuhin28 August 2020 at 21:121) C follows the procedural style programming. C++ is multi-paradigm. It supports both procedural and object oriented.2) Data is less secured in C. In C++, you can use modifiers for class members 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.7) In C, scanf() and printf() are mainly used for input/output. C++ mainly uses stream cin and cout to perform input and output operations.8) Operator overloading is not possible in C. Operator overloading is possible in C++.9) C programs are divided into procedures and modules C++ programs are divided into functions and classes.10) C does not provide the feature of namespace. C++ supports the feature of namespace.11) Exception handling is not easy in C. It has to perform using other functions. C++ provides exception handling using Try and Catch block.12) C does not support the inheritance. C++ supports inheritance.ReplyDeleteRepliesReplyAdd commentLoad more... Post a Comment Give your feedback! DO NOT SPAM !!NO THIRD PARTY PROMOTIONAL LINK !!!! (else comment will be deleted.)
KEY DIFFERENCE:-
ReplyDelete1) C is a Procedural Oriented language, whereas C++ is an Object-Oriented Programming language.
2) C supports only Pointers whereas C++ supports both pointers and references.
3) C does not allow you to use function overloading whereas C++ allows you to use function overloading.
4) C supports built-in data types whereas C++ supports built-in as well as user-defined data types.
5) C language follows the Top-Down programming approach whereas C++ follows a bottom-up programming approach.
6) C scan and printf are used for the standard input and output while in C++, cin and cout are given for standard input and output operations.
Wow!! That's really good.
DeleteThanks a lot.
You are most welcome. :-)
Delete1) C follows the procedural style programming.
ReplyDeleteC++ is multi-paradigm. It supports both procedural and object oriented.
2) Data is less secured in C. In C++, you can use modifiers for class members 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.
7) In C, scanf() and printf() are mainly used for input/output. C++ mainly uses stream cin and cout to perform input and output operations.
8) Operator overloading is not possible in C. Operator overloading is possible in C++.
9) C programs are divided into procedures and modules C++ programs are divided into functions and classes.
10) C does not provide the feature of namespace. C++ supports the feature of namespace.
11) Exception handling is not easy in C. It has to perform using other functions. C++ provides exception handling using Try and Catch block.
12) C does not support the inheritance. C++ supports inheritance.