How C Is Different From C++ - Passionate Geekz

Breaking

Where you can unleash your inner geek.

Thursday, 21 March 2019

How C Is Different From C++

You guys may be wondering, “What’s so special in C++ that makes it better than C”.
Well Today i’m writing about Some Major difference between C and C++.
C was developed by Dennis Ritchie between 1969 and 1973 at AT&T Bell Labs. C++ was developed by Bjarne Stroustrup in 1979 and C++
C is a procedural programming language that doesn’t support Classes and Objects. On the other hand C++ is Combination of both procedural
and Object Oriented programming language, that’s why it can be called as Hybrid Language. C is a subset of C++, therefore
C++ can run most of C code while C cannot run C++ Code. C Doesn’t support function and Operator overloading where as C++ Supports Both.
Also See
[su_posts template=”templates/list-loop.php” posts_per_page=”3″ tax_term=”1834″]
C doesn’t not provide any support for error handling while C++ support exception handling that helps in error detection
and smooth handling. In C scanf and printf are used for the standard Input and output while in C++ cin and cout are used
for standard input and output operations.In C language the data is Secured while In C++ data is secure, so it cant be accessed
by external functions. C supports only Pointers where as C++ Supports both Pointers and References. Namespace cannot be used in C
while C++ can use namespaces. Encapsulation is not supported in C but is Supported in C++.

No comments:

Post a Comment