0% found this document useful (0 votes)
10 views8 pages

Manthan OOP

Max

Uploaded by

Manthan Bhavsar
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)
10 views8 pages

Manthan OOP

Max

Uploaded by

Manthan Bhavsar
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/ 8

INTRODUCTION TO C IANGUAGE

It was created in 19 by Dennis Ritchie. A


computer scientist from the United States named Dennis M. Ritchie
created the programming language C at the Bell Laboratories of AT&T
(American Telephone & Telegraph) based in the United States in the
early 1970 1970s.
The C-
language is a general-purpose and procedural-oriented programming
language. It was created concurrently with the UNIX operating system
and is closely related to UNIX.
INTRODUCTION TO C++ LANGUAGE
• C++ is a general-purpose programming language that was developed as an enhancement of the C
language to include object-oriented paradigm. It is an imperative and a compiled language.
• C++ is a high-level, general-purpose programming language designed for system and application
programming. It was developed by Bjarne Stroustrup at Bell Labs in 1983 as an extension of the C
programming language. C++ is an object-oriented, multi-paradigm language that supports
procedural, functional, and generic programming styles.
• C++ is a cross-platform language that can be used to create high-performance applications.
• C++ was developed by Bjarne Stroustrup, as an extension to the C language.
• C++ gives programmers a high level of control over system resources and memory.
• The language was updated 4 major times in 2011, 2014, 2017, and 2020 to C++11, C++14, C+
+17, C++20.
DIFFERENCE BETWEEN C AND C++

C Language C++
• C was developed by Dennis Ritchie between the year • C++ was developed by Bjarne Stroustrup in 1979.
1969 and 1973 at AT&T Bell Labs.

• C does no support polymorphism, encapsulation, and • C++supports polymorphism, encapsulation, and


inheritance which means that C does not support object inheritance because it is an object oriented programming
oriented programming. language.

• C is (mostly) a subset of C++. • C++ is (mostly) a superset of C.

• Number of keywords in C: • Number of keywords in C++:


* C90: 32 * C++98: 63
* C99: 37 * C++11: 73
* C11: 44 * C++17: 73
* C23: 59 * C++20: 81
DIFFERENCE BETWEEN OOP AND POP

POP OOP

1)Full form of POP is (Procedural 1)Full Form of OOP is (Object Oriented


Oriented Programming
Programming). 2)POP stands for Procedural Oriented
2)OOP stands for Object Oriented Programming.
Programing. 3)POP follows top down approach.

3)OOP follows bottom up approach. 4)A program is divided into funtions


and they interacts.
4)A program is divided to objects and
their interactions.
TOKENS
• Tokens are widely used to provide authorization and
authentication to users when they access a website or
a mobile application. This post covers detailed
information about the use of tokens along with its
advantages and disadvantages. You may have come
across the term “Token” multiple times.
• Example:-In general, a token is an object that represents
something else, such as another object (either physical or
virtual), or an abstract concept as, for example, a gift is
sometimes referred to as a token of the giver's esteem for the
CONSTANTS

• Constants in C++ are the tokens that are defined at the time
of initialization and the assigned value cannot be altered or
updated after that. The #define preprocessor directive and
the 'const' keyword are the two methods to define a
constant. The value stored in a constant variable is known as
a literal.
• Example:- In C++, we can create variables whose value
cannot be changed. For that, we use the const keyword.
Here's an example: const int LIGHT_SPEED = 299792458;
LIGHT_SPEED = 2500 // Error!
Variables

Variable may refer to: Variable (computer science), a symbolic


name associated with a value and whose associated value
may be changed. Variable (mathematics), a symbol that
represents a quantity in a mathematical expression, as used
in many sciences. Variable (research), a logical set of
attributes.
Example:- Height, age, income, province or country of birth,
grades obtained at school and type of housing are all
examples of variables.
TYPES OF OPERATOR

There are four types of operator as follows:

You might also like