0% found this document useful (0 votes)
33 views6 pages

OOPS1 Introduction To C++

C++ is an object-oriented programming language that gives programs a clear structure and allows code to be reused. It is portable and can be used to develop applications for multiple platforms. C++ supports features like classes, inheritance, operator overloading, exceptions, and templates which make it easier to manage large projects. C++ is a mid-level language that provides low-level capabilities and efficiency like C while incorporating high-level features like abstraction mechanisms.

Uploaded by

viveknegi200345
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views6 pages

OOPS1 Introduction To C++

C++ is an object-oriented programming language that gives programs a clear structure and allows code to be reused. It is portable and can be used to develop applications for multiple platforms. C++ supports features like classes, inheritance, operator overloading, exceptions, and templates which make it easier to manage large projects. C++ is a mid-level language that provides low-level capabilities and efficiency like C while incorporating high-level features like abstraction mechanisms.

Uploaded by

viveknegi200345
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Introduction to C++

• C++ is a middle-level programming language developed by


Bjarne Stroustrup starting in 1979 at Bell Labs.
• C++ is an object-oriented programming language which gives
a clear structure to programs and allows code to be reused,
lowering development costs.
• C++ is portable and can be used to develop applications that
can be adapted to multiple platforms.
C++ Features
• Simple: C++ is a simple language in the sense that it provides structured approach (to
break the problem into parts), rich set of library functions, data types etc.
• Machine Independent or Portable: Unlike assembly language, c programs can be
executed in many machines with little bit or no change. But it is not platform-
independent.
• Mid-level programming language: C++ is also used to do low level programming. It
is used to develop system applications such as kernel, driver etc. It also supports the
feature of high level language. That is why it is known as mid-level language.
• Structured programming language: C++ is a structured programming language in
the sense that we can break the program into parts using functions. So, it is easy to
understand and modify.
• Rich Library: C++ provides a lot of inbuilt functions that makes the development fast.
• Memory Management: It supports the feature of dynamic memory allocation. In C++ language,
we can free the allocated memory at any time by calling the free() function.
• Speed: The compilation and execution time of C++ language is fast.
• Pointer: C++ provides the feature of pointers. We can directly interact with the memory by using
the pointers. We can use pointers for memory, structures, functions, array etc.
• Recursion: In C++, we can call the function within the function. It provides code reusability for
every function.
• Extensible: C++ language is extensible because it can easily adopt new features.
• Object Oriented: C++ is object oriented programming language. OOPs makes development and
maintenance easier where as in Procedure-oriented programming language it is not easy to
manage if code grows as project size grows.
• Compiler based: C++ is a compiler based programming language, it means without compilation
no C++ program can be executed.
C v/s C++
C C++
C follows the procedural style programming. C++ is multi-paradigm. It supports both procedural and
object oriented.
Data is less secured in C. In C++, you can use modifiers for class members to
make it inaccessible for outside users.
C follows the top-down approach. C++ follows the bottom-up approach.
C does not support function overloading. C++ supports function overloading.
In C, you can't use functions in structure. In C++, you can use functions in structure.
C does not support reference variables. C++ supports reference variables.
In C, scanf() and printf() are mainly used for C++ mainly uses stream cin and cout to perform input
input/output. and output operations.
Operator overloading is not possible in C. Operator overloading is possible in C++.
C programs are divided into procedures and modules C++ programs are divided into functions and classes.

C does not provide the feature of namespace. C++ supports the feature of namespace.
Exception handling is not easy in C. It has to perform C++ provides exception handling using Try and Catch
using other functions. block.
C does not support the inheritance. C++ supports inheritance.
Data Types
• A data type specifies the type of data that a variable can store such as integer,
floating, character etc.

You might also like