Lab Manual for Programming in C Lab by Er. Suraj Deb Barma Page 7
Operators
C supports a rich set of operators, which are symbols used within an expression to
specify the manipulations to be performed while evaluating that expression. C has
the following operators:
arithmetic: +, -, *, /, %
assignment: =
augmented assignment: +=, - =, *=, /=, %=, &=, |=, ^=, <<=, >>=
bitwise logic: ~, &, |, ^
bitwise shifts: <<, >>
boolean logic: !, &&, ||
conditional evaluation: ? :
equality testing: = =, !=
calling functions: ( )
increment and decrement: ++ and - -
member selection: ., ->
object size: sizeof
order relations: <, <=, >, >=
reference and dereference: &, *, [ ]
sequencing: ,
subexpression grouping: ( )
type conversion: (typename)
SALIENT FEATURES OF C
C language has some characteristics that define the language and also have led to its
popularity as a programming language.
Small size.
Extensive use of function calls.
Structured language.
Low level (Bitwise) programming readily available.
Pointer implementation - extensive use of pointers for memory, array,
structures and functions.
It has high-level constructs.
It can handle low-level activities.
It produces efficient programs.
It can be compiled on a variety of computers.