Computer Science, asked by amusridhar9650, 1 year ago

Explain relational operators in c++ with example

Answers

Answered by shekhar73
3

Operators are the foundation of any programming language. Thus the functionality of C/C++ programming language is incomplete without the use of operators. We can define operators as symbols that helps us to perform specific mathematical and logical computations on operands. In other words we can say that an operator operates the operands.

For example, consider the below statement:

c = a + b;

Here, ‘+’ is the operator known as addition operator and ‘a’ and ‘b’ are operands. The addition operator tells the compiler to add both of the operands ‘a’ and ‘b’. C/C++ has many built-in operator types and they can be classified as:

Arithmetic Operators: These are the operators used to perform arithmetic/mathematical operations on operands. Examples: (+, -, *, /, %,++,–).


karanveerkhehra: o bhai krde tu
shekhar73: reason bol abhi karta unfollow
shekhar73: ruk karta
shekhar73: ok
shekhar73: kush
shekhar73: happy
shekhar73: bye
karanveerkhehra: bhai mainu chnge nhi lgde
karanveerkhehra: thanks bro
shekhar73: welcome bro
Answered by purship27
0

realational operators check numerically equally or non- equally is called relational operators .we use relational operators in conditional program

*greater than

*less than

*greater than or equal to

*less tan or equal to

Similar questions