Subject: Computer Basics
C is a very powerful high level programming language.It was developed in 1972 by Denis Ritchie at AT and Bell Lab U.S.A. It was developed taking good features of it's predecessor BCPL & B. This language was used by Ken Thomson & Denis Ritchie to develop UNIX operating system. It is very Robust independent machine with general purpose language. It has been used to develop powerful applications. This language combines the capability of an assembly language with the features of high level language. It is suitable for writing system software as well as application software. This is also called procedure oriented/structure oriented language.
This programming languages was developed by Bjarne Stoustrup at Bell Lab in New Jersey in early 1980's as an extension of C. It is also called object oriented programming language. C++ is general purpose programming language and is regarded as mid-level language. It comprises combination of both high level and low level language features. This language corrects most of the deficiency of C by offering improved compile time, type checking, and support for modular and object oriented programming. It support multiple inheritance and does not have garbage collector.
Pascal is a procedural programming language, designed in 1968-1969 and published in 1970 by Niklaus Wirth as a small and efficient language intended to encourage good programming practices using structured programming and data structuring. Pascal enabled programmers to define their own complex (structured) datatypes, and also made it easier to build dynamic and recursive data structures such as lists, trees and graphs.
1. C is Procedural Language. | 1. C++ is non Procedural i.e Object oriented Language. |
2. No virtual Functions are present in C | 2. The concept of virtual Functions are used in C++. |
3. In C, Polymorphism is not possible. | 3. The concept of polymorphism is used in C++. Polymorphism is the most Important Feature of OOPS. |
4. Operator overloading is not possible in C. | 4. Operator overloading is one of the greatest Feature of C++. |
5. Top down approach is used in Program Design. | 5. Bottom up approach adopted in Program Design. |
6. No inheritance is possible in C. | 6. Inheritance is possible in C++ |
7. It supports built-in and primitive data types. | 7. It support both built-in and user define data types. |
8. In C, Exception Handling is not present. | 8. In C++, Exception Handling is done with Try and Catch block. |
Any two features of C language are as follows:
The differences between C and C++ are as follows:
1.C is Procedural Language. | 1.C++ is non Procedural i.e Object oriented Language. |
2.No virtual Functions are present in C | 2.The concept of virtual Functions are used in C++. |
3.In C, Polymorphism is not possible. | 3.The concept of polymorphism is used in C++. Polymorphism is the most Important Feature of OOPS. |
4.Operator overloading is not possible in C. | 4.Operator overloading is one of the greatest Feature of C++. |
5.Top down approach is used in Program Design. | 5.Bottom up approach adopted in Program Design. |
6.No inheritance is possible in C. | 6.Inheritance is possible in C++ |
7.It supports built-in and primitive data types. | 7.It support both built-in and user define data types. |
8.In C, Exception Handling is not present. | 8.In C++, Exception Handling is done with Try and Catch block. |
© 2019-20 Kullabs. All Rights Reserved.