"FUNCTION" in C++
The name of a subroutine in
C++.
(Note: We will amend this definition
very soon! We will distinguish between a "function" and a "procedure",
both of which are types of subroutines.)
PROGRAMMING LANGUAGE
A set of rules, symbols, and
specific words used to construct a computer program.
SYNTAX RULES
Formal rules governing how valid
instructions are written in a programming language.
SYNTAX ERROR
Error caused by not abiding
by the formal rules governing how valid instructions are written in a programming
language.
These errors are caught by the
compiler.
(Previously posted definition:
"Error caused by not abiding by the syntax rules for the language.")
This definition is not good because
it uses "syntax" in the definition.)
SEMANTIC RULES
Rules that determine the meaning
of instructions written in a programming language. A "misuse" of the language.
IDENTIFIER
A name for a variable, constant,
data type, or subroutine used in a program to refer to that variable, constant,
data types, or subroutine.
RESERVED WORD
Identifier with a predefined
meaning in a given programming language. It should not be used as a programmer-defined
identifier.
DATA TYPE
A specific set of data values
along with a set of operations on those values.
BIT
A "binary unit". An on/off signal.
The basic unit of storage on a computer.
BYTE
A units of storage consisting
of a series of 8 bits.
int
Data type in C++ used to represent
an integer.
float
Data type in C++ used to represent
a real number.
char
Data type in C++ used to represent
a character.
ASCII COLLATING SEQUENCE
("ASCII" represented American
Standard Code for Information Interchange.)
A commonly used standardized
set of characters along with their corresponding binary codes.
LITERAL VALUE
Any constant value written in
a program.
NAMED CONSTANT
Location in memory, referenced
by an identifier, where a data value that cannot be changed during program
execution is stored.
UNARY OPERATOR
Operator that has only one operand.
BINARY OPERATOR
Operator that has two operands.
COMMENT
An explanatory note, embedded
in the source code, which is intended for people to read. Its intention
is to clarify what's happening in the code at some point in the program.
BLOCK (of instructions in C++)
A sequence of 0 or more statements
enclosed by a pair of curly braces {}.