Professional Documents
Culture Documents
Types: Types Are Fundamental To Any Program
Types: Types Are Fundamental To Any Program
A superset of C
Supports data abstraction
Supports object-oriented programming
Supports generic programming.
Arithmetic Type -
o Integral Types(Characters, integers, boolean values, etc)
o Floating-point types(float, double, etc)
Void(special type)
Variables: A variable provides us with named storage that our programs can
manipulate.
Each variable in C++ has a type. It determines the size and layout of the variable’s
memory.
It also determines the range of values that can be stored within that memory along
with the set of operations that can be applied to the variable. A simple variable
definition consists of:
A type specifier.
A list of one or more variable names separated by commas, and ends with a
semicolon.
Private
Public
Protected
C++ MCQ