Introduction to C + +: Introduction, Objectives and Benefits of C + + Over C Language

Doorsteptutor material for UGC is prepared by world's top subject experts: Get complete video lectures from top expert with unlimited validity: cover entire syllabus, expected topics, in full detail- anytime and anywhere & ask your doubts to top experts.

Download PDF of This Page (Size: 209K)

Image of Introduction to C++

Image of Introduction to C++

Image of Introduction to C++

Introduction

  • C++ is an extension to C Programming language.

  • It was developed at AT&T Bell Laboratories in the early 1980s by Bjarne Structure.

  • C++ is an Object-Oriented Programming language but is not purely Object Oriented.

Image of Communication in c++

Image of Communication in C++

Image of Communication in c++

Objectives

  • After going through this lesson, you would be able to:

  • Learn about C++ character set, tokens and basic data types

  • Explain the utility of different types of operators used in C++

  • Identify the difference between implicit and explicit conversions

  • Explain about Input/output streams supported by C++

  • Explain the structure of a C++ program

  • Write a simple program in C++

Benefits of C++ over C Language

The major difference being OOPS concept, C++ is an object-oriented language whereas C language is a procedural language.

Following features of C++ makes it a stronger language than C.

  • There is Stronger Type Checking in C++.

  • Exception Handling is there in C++.

  • All the OOPS features in C++ like Abstraction, Encapsulation, Inheritance etc. makes it more worthy and useful for programmers.

  • C++ supports and allows user defined operators (i.e. Operator Overloading) and function overloading is also supported in it.

  • Inline Functions in C++ instead of Macros in C language. Inline functions make complete function body act like Macro, safely.

  • The Concept of Virtual functions and also Constructors and Destructors for Objects.

  • Variables can be declared anywhere in the program in C++ but must be declared before they are used.

Developed by: