QUICK REVIEW BASIC ELEMENTS OF C++ Flashcards
is a collection of functions.
C++ program
Every C++ program has a function called
main
starts with the pair of symbols //anywhere in the
line
single-line comment
are enclosed between /* and */
Multiline comments
The _________ skips comments.
compiler
cannot be used as identifiers in a program.
Reserved words
All ___________ in C++ consist of lowercase letters
reserved words
In C++, ________ are names of things
identifiers
A C++ identifier consists of letters, digits, and underscores and must begin with a
letter or underscore.
include blanks, tabs, and newline characters.
Whitespaces
is a set of values together with a set of operations.
data type
C++ data types fall into the following three categories:
simple, structured, and pointers.
There are three categories of simple data:
integral, floating-point, and enumeration.
Integral data types are classified into nine categories:
char, short, int, long, bool, unsigned char, unsigned short, unsigned int, and unsigned long.
The values belonging to int data type are
-2147483648 (-2^31) to 2147483647 (2^31 - 1)
The data type bool has only two values:
true and false
The most common character sets are ________, which has 128 values, and _________, which has 256 values
ASCII and EBCDIC
The ______________ of a character is its preset number in the character data set.
collating sequence
C++ provides three data types to manipulate decimal numbers:
float, double, and long double.
used in C++ to represent any real number
data type float