G H Raisoni Institute of Engineering and Technology
G H Raisoni Institute of Engineering and Technology
and Technology
Presentation on C Operators
By Gayatri Bagade
Third sem , Electrical
1
Operators
An operator is a symbol or letter used to indicate a specific operation
on variables in a program. Example, the symbol `+' is an add operator
that adds two data items called operands.
Expression. An expression is a combination of operands (i.e.,
constants, variables, numbers) connected by operators and
parentheses. Example, in the expression given below, A and B are
operands and `+' is an operator.
A+B
An expression that involves arithmetic operators is known as an
arithmetic expression.
The computed result of an arithmetic expression is always a numerical
value.
An expression which involves relational and/or logical operators is
called a Boolean expression or logical expression.
The computed result of such an expression is a logical value, i.e., either
1 (True) or 0 (False).
Computer Fundamentals and Programming in C 2
Arithmetic Operators
Arithmetic operators can further be classified as unary
operators and binary operators.
Arithmetic operators