C language Operators and Features
Operators
C supports a rich set of operators, which are symbols used within expressions to specify the manipulations to be performed. C has various types of operators:
Arithmetic operators: +, -, *, /, %
Assignment operator: =
Augmented assignment operators: +=, -=, *=, /=, %=, &=, |=, ^=, <<=, >>=
Bitwise logic operators: ~, &, |
Bitwise shift operators: <<, >>
Boolean logic operators: !, &&, ||
Conditional evaluation: ? :
Equality testing: ==, !=
Function calling: ( )
Increment and decrement: ++, --
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 have led to its popularity as a programming language:
Small size.
Extensive use of function calls.
Structured language.
Low-level (Bitwise) programming is readily available.
Pointer implementation is used extensively for memory, arrays, 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.
Operators
C supports a rich set of operators, which are symbols used within expressions to specify the manipulations to be performed. C has various types of operators:
Arithmetic operators: +, -, *, /, %
Assignment operator: =
Augmented assignment operators: +=, -=, *=, /=, %=, &=, |=, ^=, <<=, >>=
Bitwise logic operators: ~, &, |
Bitwise shift operators: <<, >>
Boolean logic operators: !, &&, ||
Conditional evaluation: ? :
Equality testing: ==, !=
Function calling: ( )
Increment and decrement: ++, --
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 have led to its popularity as a programming language:
Small size.
Extensive use of function calls.
Structured language.
Low-level (Bitwise) programming is readily available.
Pointer implementation is used extensively for memory, arrays, 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.