Professional Documents
Culture Documents
specific task.
Types :-
Drawbacks
As global data is more vulnerable to an inadvertent change by a function.In large
programs it becomes difficult to identify what data is used by which function.
C++
History
It is an object-oriented programming language. It was developed by Bjarne
Stroustrup at AT & T Bell Laboratories in Murray Hill, New Jersey, USA in the early
1980's.C++ is an incremented version of C.
C++ is a superset of C. Most of what we alredy know about C applies to C++ also.
So all C programs are also called C++ programs. However there's a difference in
the object-oriented features in C++ which allow even larege programs to run with
clarity, extensibility & ease of maintainance. These are inheritance,
polymorphism, Clases thereby making C++ a trurly object - oriented language.
APPLICATIONS -
1. C++ allows us to create hierarchy related objects, so we can build special
object-oriented libraries which can be used later by many programmers.
2. C++ is able to map real world problems properly.
3. C++ programs are easily maintainable and expandable.We can easily add a
new feature to the existing structure.
4. It is expected that C++ will replace C as a near future general - purpose
language in near future.
# PROGRAM FEATURES
1. Comments
Comments start double slash symbol and terminateat the end of line
2. Output Operation
4. Namespace
This defines a scope for the identifiers that are used in a program.For
5. Token
The smallest individual units in a program are known as tokens. C++
Keywords
Identifier
Constants
Operators
a) Keywords
These are explicitly reserved names and can't be used as names of any
A Class in a single unit which encapsulates in itself data and functions related to
7. Data Type
It tells the type of data that can be stored in a variable or used in a program.
There are many predefined data types like int, char, float etc.
-------------------0------------------