C Programming Language
C Programming Language
Copies the data from the standard input device. EXPRESSIONS WITH MULTIPLE OPERATORS
& is the C address-of operator. It tells where to find Unary operator is an operator with one operand. x = -y;
each variable. Binary operators require two operands. x = y + z;
Multiple operators require three or more operator.
PLACEHOLDERS IN FORMAT STRINGS x = a + b – c;
PLACEHOLDER MEANING FUNCTION USE
PRECEDENCE OF ARITHMETIC OPERATORS
%c character printf/scanf
%d or %i integer printf/scanf
%f double printf
%lf double scanf
%s string printf
CONDITIONAL CONSTRUCTS
LOGICAL OPERATORS
if CONDITION
If statement is an example of a control structure.
If condition selects the statement following the
condition, if the condition is true it allows to execute
NESTED IF STATEMENT
If statement with another if statement as its true
task or its false task.
MULTIPLE-ALTERNATIVE DECISIONS
If the statement is obeyed the program continues
with the next instruction following the if statement,
if not the statement is ignored and program
continues with the next.