Why C++ language is better than C?


Difference b/w C and C++ or Which one is better C or C++?

C - Language
C ++ - Language
In C, you have to use alloc ,calloc and malloc functions for dynamic memory allocation.
Where in C++, Dynamic Memory allocation and deallocation becomes simpler just by the use of ' new' and 'delete' keyword.
In C, data not secure because all data are public that means to hide the data from the public, no features are added.
C++ is more secure when it comes to data security because of the Private, Public, Protected access specifiers.
Execution of the process is slower because it is a top-down approach.
It is the execution process fast because  it is bottom-up approach.
It is difficult to find an error in C large program because errors are checking in functions.
It is easy to find the errors because of using class and object to detect exactly error in large programs.
C language has a low level of libraries.
C++ have lots of built-in library files.
C language cannot support C++ files.
Prior it was named “C with classes” as per it had all the C language properties.
It has a low level of graphics files.
It has a high level of graphics files.

Share:

No comments:

Post a Comment

Popular Posts

Search This Blog

Powered by Blogger.

Blog Archive

Service Support

Need our help to Learn or Post New Concepts Contact me

Blog Archive

Recent Posts

Service Support

Need our help to Learn or Post New Concepts Contact me