click below
click below
Normal Size Small Size show me how
COP2220 Ch3
Computer Science I Chapter 3 Terms
Question | Answer |
---|---|
additive expression | in C, the binary addition and subtraction expressions |
assignment expression | an expression containing the assignment operator (=) that results in the value of the expression being placed into the left operand |
associativity | the parsing direction used to evaluate an expression when all operators have an equal priority |
binary expression | any expression containing one operator and two operands |
block | in C, a group of statements enclosed in braces {...} |
cast | a C operator that changes the type of an expression |
compound statement | a sequence of statements enclosed in braces |
demotion | an implicit type conversion in which the rank of an expression is temporarily reduced to match other elements of the expression |
explicit type conversion | the conversion of a value from one type to another through the cast operator, contrast with implicit type conversion |
expression | a sequence of operators and operands that reduces the a single value |
expression statement | an expression terminated by a semicolon |
implicit type conversion | the automatic conversion of data from one type to another when required within a C program |
KISS | in this text: keep it short and simple |
left-to-right associativity | the evaluation of an expression that parses from the left to the right |
multiplicative expression | an expression that contains a multiply, divide or modulus operator |
operand | an object in a statement on which an operation is performed |
operator | the syntactical token representing an action on data (the operand) |
postfix expression | an expression in which the operator follows the operand |
precedence | the priority assigned to an operator or group of operators that determines the order in which operators will be evaluated in an expression |
primary expression | an expression consisting of only a single operator, contrast with post-test loop |
promotion | an implicit type conversion in which the rank of an expression is temporarily increased to match other elements of the expression |
right-to-left associativity | the evaluation of an expression that parses from the right to the left |
side effect | a change in a variable that results from the evaluation of an expression; any input/output performed by a called function |
unary expression | an expression that consists of one operator and one operand |
user prompts | monitor messages to a user that request the user input one or more values |