Chapter 1 - C++ Basics Flashcards
Functions
All procedure-like entities. In other programming languages, known as; procedures, methods, or sub programs.
return 0;
This statement ends the invocation of the function.
String
The text inside quotation marks.
Identifier
The name of a variable (or other item you might define in a program). In C++, it must start with either a letter or the underscore symbol, and all the rest of the characters must be letters, digits, or the underscore symbol.
Case-sensitive
Distinguishes between upper and lowercase letters in the spelling of identifiers.
Keyword aka reserved word
Have a predefined meaning and cannot be used as names for variables or anything else.
Declare
To do this means to tell the compiler what kind of data you will be storing in the variable.
Floating-point number
A number with a decimal point.
Unsigned
A version of an integer type that includes only nonnegative values.
Assignment statement
The most direct way to change the value of a variable. The equal sign is used as the operator. It always consists of a variable on the left-handed side of the equal sign and an expression on the right-hand side. It ends with a semicolon.
Uninitialized variable
A variable that has not been given a value. Will simply have a garbage value that is determined by whatever pattern of zeros and ones was left in its memory location by the last program that used that portion of memory.
Literal constant
A name for one specific value. They do not change value; variables can change their values.
C-strings
Strings in double quotes.
Escape sequence
A backslash \, preceding a character that tells the compiler the sequence following the backlash does not have the same meaning as the character appearing by itself.
Modifier
Modifies the variables being declared.