C++ LANGUAGE – INTRODUCTION AND EXPLAINATION

C++ LANGUAGE - INTRODUCTION AND EXPLAINATION

C v/s C++ :

1. The First difference is that C is a procedural Language.. While, C++ is an OOP Language..

2. The second difference is that C uses TOP-DOWN APPROACH in Program design.. While, C++ uses BOTTOM-UP APPROACH in Program design.

3. The third difference is that the mapping procedure in C between Data and Function is difficult and full of complications.. While, the mapping procedure in C++ between data and functions is by using objects.

4. The fourth difference is that there’s no presence of exceptional handling in C programming.. While, exceptional handling is through TRY and CATCH block.

5. The fifth difference is that Operator Overloading is not-at-all possible in C.. While, Operator Overloading is one of the greatest features of C++.

6. The sixth difference is that we use malloc() and calloc() for dynamic memory-allocation and free() for memory-deallocation in C.. While, in C++ we use “new” and “delete” operators for memory allocation and deallocation.

Certainly, C is an excellent programming language, but it has its own limits. And one of the biggest reasons for the need for C++ Language was “increasing complexity in C programs“. 

C++ LANGUAGE – OLD-STYLE v/s MODERN C++

Certainly, we all know that C++ Language underwent a rather extensive evolutionary process during its development and Standardization. Therefore, as a result there are really two versions of C++ Language. The first one is the traditional version that is on the basis of Bjarne Stroustrup’s original designs. The second one is Standard C++, the creation by Stroustrup and the ANSI/ISO standardization committee.

While, the two versions of C++ Language are very similar at their core.. Standard C++ is essentially a super-set of traditional C++. Furthermore, Standard C++ is the version which ANSI/ISO Standardization committee defines. And also, all the modern C++ compilers implement this particular version.

However, if you are using an older compiler.. Then it may not accept all of the programs that reflects Standard C++. Why!? Because during the process of Standardization, the ANSI/ISO committee adjoin many new features to the Language. Thus, an older compiler might not support some or more of them.

Leave a comment

Your email address will not be published. Required fields are marked *

10 thoughts on “C++ LANGUAGE – INTRODUCTION AND EXPLAINATION”