Save
MIDTERM_2ND SEM.1
Data Structure & Algorithm Analysis
LESSON 1.1 C++ OVERVIEW
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
rein
Visit profile
Cards (15)
DATA TYPES
a
classification
that dictates what a
variable
or object can hold
3 Basic
Major Data Types
Numerical
Alphabetical
Logical
Integer
no.
whole
number
Integer
no.
int
,
short
and
long
Floating point numbers
2 types:
float
and
double
Alphabetic Data Type
Character Data Type
Strings Data type
Character Data type
Store a
single
character
Strings
Data type
Store 2 more
characters
:
“Melissa”
or
“apple”
LOGICAL DATA
Supports
two
vaues: true or false
Keyword:
bool
C++ PRIMITIVE DATA TYPES
A)
integral
B)
floating
C)
char
D)
short
E)
int
F)
long
G)
bool
H)
float
I)
double
J)
long double
K)
unsigned
11
IDENTIFIER
name to denote labels, types, variables, constant or functions, in a
C++
program.
Identifiers
should be descriptive
VARIABLE
Location on computer’s memory to store data then use and change its value in a program
CONSTANT
Fixed value,
const
const [data type] [name] = initial value