what is operator in c language

10 months ago 76
Nature

In the C programming language, an operator is a symbol that tells the compiler to perform specific mathematical or logical functions

. C language is rich in built-in operators and provides the following types of operators: arithmetic, relational, logical, bitwise, assignment, and miscellaneous operators

. Arithmetic operators perform mathematical operations such as addition, subtraction, multiplication, division, and modulus

. Relational operators check the relationship between two operands and return 1 if the relation is true and 0 if it is false

. Logical operators perform logical operations such as AND, OR, and NOT

. Bitwise operators perform bit-level operations

. Assignment operators are used to assign values to variables

. Miscellaneous operators include sizeof and ternary operators