knowt logo

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:

  1. Arithmetic operators: +, -, *, /, %

  2. Assignment operator: =

  3. Augmented assignment operators: +=, -=, *=, /=, %=, &=, |=, ^=, <<=, >>=

  4. Bitwise logic operators: ~, &, |

  5. Bitwise shift operators: <<, >>

  6. Boolean logic operators: !, &&, ||

  7. Conditional evaluation: ? :

  8. Equality testing: ==, !=

  9. Function calling: ( )

  10. Increment and decrement: ++, --

  11. Member selection: ., ->

  12. Object size: sizeof

  13. Order relations: <, <=, >, >=

  14. Reference and dereference: &, *, [ ]

  15. Sequencing: ,

  16. Subexpression grouping: ( )

  17. 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.

K

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:

  1. Arithmetic operators: +, -, *, /, %

  2. Assignment operator: =

  3. Augmented assignment operators: +=, -=, *=, /=, %=, &=, |=, ^=, <<=, >>=

  4. Bitwise logic operators: ~, &, |

  5. Bitwise shift operators: <<, >>

  6. Boolean logic operators: !, &&, ||

  7. Conditional evaluation: ? :

  8. Equality testing: ==, !=

  9. Function calling: ( )

  10. Increment and decrement: ++, --

  11. Member selection: ., ->

  12. Object size: sizeof

  13. Order relations: <, <=, >, >=

  14. Reference and dereference: &, *, [ ]

  15. Sequencing: ,

  16. Subexpression grouping: ( )

  17. 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.

robot