Operators
Operators are the symbols that are used to perform some kind of operation. Operators can be classified based on the type of operation they perform.
There are the following types of operators in C:
S.No. | Operator Type | Description | Example |
---|---|---|---|
1. |
Arithmetic Operators | Operators that perform arithmetic operations. | +, -, *, /, % |
2. |
Relational Operators | They are used to compare two values. | <, >, <=, >=, ==, != |
3. |
Bitwise Operators | They are used to perform bit-level operations on integers. | &, ^, |, <<, >>, ~ |
4. |
Logical Operators | They perform logical operations such as logical AND, logical OR, etc. | &&, ||, ! |
5. |
Conditional Operators | The conditional Operator is used to insert conditional code. | ? : |
6. |
Assignment Operators | They are used to assign some value to the variables. | =, +=, -=, <<= |
7. |
Miscellaneous Operators | comma, addressof, sizeof, etc. are some other types of operators. | , sizeof, &, *, ->, . |
C Cheat Sheet
This C Cheat Sheet provides an overview of both basic and advanced concepts of the C language. Whether you’re a beginner or an experienced programmer, this cheat sheet will help you revise and quickly go through the core principles of the C language.
In this Cheat Sheet, we will delve into the basics of the C language, exploring its fundamental concepts that lay the groundwork for programming. We will cover topics such as variables, data types, and operators, providing you with a solid understanding of the building blocks of C programming.
Contact Us