In C language, operators are represented by symbols and perform mathematical or logical operations. They are classified according to the following categories: 1. Arithmetic operators ( , -, , /, %); 2. Assignment operators (=, =, -=, =, /=); 3. Relational operators (==, ! =, <, >, <=, >=); 4. Logical operators (&, |, ^, !, &&, ||); 5. Bit operators (<<, > >, ~); 6. Other operators (&, *, sizeof, ->).
#What is the representation of operators in C language?
In C language, operators are represented by symbols and are used to perform mathematical or logical operations. They are available for various data types such as integers, floating point numbers, characters, and strings.
Operators are divided into the following categories:
1. Arithmetic operators
Addition-
Subtraction*
Multiplication/
Division%
Remainder2. Assignment operator
Assignment
Additive assignment
Subtractive assignment
Multiplicative assignment
Division assignment
3. Relational operator
is equal to
is not equal to
is less than
is greater than
Less than or equal to
Greater than or equal to
4. Logical operators
Bitwise AND
Bitwise OR
Bitwise XOR
Not
Logical AND
Logical OR
5. Bit operators
Left shift
Right shift
Complement code
6. Other operators
Address reference Symbol
Dereference character
Obtain data type size
Member access character
Pointer member accessor
The above is the detailed content of What is the expression of operator in C language?. For more information, please follow other related articles on the PHP Chinese website!