Define the relational operator in c language, C/C++ Programming

Define the Relational Operator in c language?

The Relational operators refer to the relationships that values can have with one another and they are used to compare two operands to see whether they are equal to each other unequal or whether one is greater than other. The result of the relational expression is either one or zero and it is one if the specified relation is true zero if the relation is false and the following figure shows these operators along with their meanings.

Operator            Purpose

<                       Less than

>                       Greater than

<=                     Less than equal to

>=                     Greater than equal to

==                     Equal to

!=                      Not Equal to

Relational expression are meant to use in decision statements such as while and if to decide the course of action of a running program.

Posted Date: 6/12/2013 6:10:14 AM | Location : United States







Related Discussions:- Define the relational operator in c language, Assignment Help, Ask Question on Define the relational operator in c language, Get Answer, Expert's Help, Define the relational operator in c language Discussions

Write discussion on Define the relational operator in c language
Your posts are moderated
Related Questions
Program is to replace every occurrence of in a string: Program is to replace every occurrence of c1 in string with c2 and have function return the no. of replacement int re

Q-What is your reaction to following line of code?               delete this; A: This is not a good programming Practice. A good programmer will insist that you must absolute


P o i n t e r d e c l a r a t i o n f o r me m b e r f un c t i o n : M e t h o d 1 : W h e n C l a ss i s n o t

The continue statement The continue statement causes the next iteration of the enclosing loop to start. When this is encountered in the loop , the rest of the statements in the

Define the Conditional Operator in c language? The Simple conditional operator can be carried out with the conditional operators (? And :). An expression that makes use of the

THIS PROGRAM IS TO MULTIPLY THE TWO COMPLEX NO.S GIVEN BY THE USER #include #include #include struct complex     {     int real;     int imag;     }; void main()  {  clrs

A: The inline keyword tells the compiler to substitute the code in the function de_nition for each instance of a function call. Though, substitution takes place only at the compile

Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send

write an algorithm that reads a postive integer n and then finds and prints the sum of all integers between 1 and n (inclusive) that are disvisible by 7. please write this using c