Some of the relational operators are (=, >=, <= ). For example, checking if one operand is equal to the other operand or not, an operand is greater than the other operand or not etc.
Arithmetic Operators: These are the operators used to perform arithmetic/mathematical operations on operands.
The addition operator tells the compiler to add both of the operands ‘a’ and ‘b’.Ĭ/C++ has many built-in operator types and they are classified as follows: Here, ‘+’ is the operator known as addition operator and ‘a’ and ‘b’ are operands. In other words, we can say that an operator operates the operands.įor example, consider the below statement: We can define operators as symbols that help us to perform specific mathematical and logical computations on operands. Thus the functionality of C/C++ programming language is incomplete without the use of operators. Operators are the foundation of any programming language.
ISRO CS Original Papers and Official Keys.GATE CS Original Papers and Official Keys.