# Relational Operators in C Language

50 %
50 %
Information about Relational Operators in C Language
Education

Published on March 5, 2014

Author: cmarathi

Source: slideshare.net

## Description

The presentation shows the relational operators in C programming language

www.cmarathionline.com RELATIONAL OPERATORS IN C Bhalchandra Gholkar www.cmarathionline.com

RELATIONAL OPERATORS IN C Meaning Example Value of the expression < less than age < 30 > greater than height > 6.2 Value is 0 (Zero) if expression is false <= less than or equal to taxable <= 20000 >= greater than or equal to temperature >= 98.6 == equal to marks == 100 != not equal to number != 250 Value is 1 (one) if expression is True www.cmarathionline.com Operator

if(‘a’<‘P’) { ………. ………. } If x contains 5 and y contains 10 then value of the expression is 1 and condition is true If x contains 10 and y contains 4 then value of the expression is 0 and condition is false As ASCII value of A is 97 and ASCII value of P is 80 the expression is false and value of the expression is 0 If block www.cmarathionline.com if(x<y) { ………. ………. }

if(x) { ………. ………. } Valid condition. -5 is a truth value and is non zero. So value of the expression is 1 and statement is true! If x contains any non zero value the expression is true and value of the expression is 1. If x contains zero, value of the expression is 0 and statement is false www.cmarathionline.com if(-5) { ………. ………. }

 User name: Comment:

## Related presentations

#### Digital Marketing Courses Institute In Noida

November 24, 2017

November 24, 2017

#### PHP Industrial Training Institute in Bareilly - Co...

November 20, 2017

#### Get Hands on Best PHP Training In Indore

November 21, 2017

#### 1128_Presentatie_GroepB_Presentatie3

November 24, 2017

#### What Is Nitrous Oxide and Is It Safe

November 24, 2017

## Related pages

### Relational Operators in C - Tutorialspoint

Relational Operators in C. ... shows all the relational operators supported by C language. ... understand all the relational operators available in C ...

### Relational Operator in C Programming Language

Relational operators in c programming is used for specifying the relation between two operands such as greater than,less than and equals. Relational ...

### C Language operators - Tutorialspoint

Relational Operators. The following table shows all the relational operators supported by C. Assume variable A holds 10 and variable B holds 20 then −

### Relational operator - Wikipedia

In computer science, a relational operator is a programming language construct or operator that tests or defines some kind of relation between two entities.

### Operators in C and C++ - Wikipedia

Operators in C and C++ ... Comparison operators/relational operators ... by a factored language grammar, ...

### C Relational and Equality Operators - msdn.microsoft.com

C Language Reference ... The binary relational and equality operators compare their first operand to ... For the other relational operators ...

### C Operators: Arithmetic, Logical, Conditional and more

C Programming Operators. ... Example #4: Relational Operators // C Program to demonstrate the working of arithmetic operators #include int main() ...

### Relational Operator in C language - YouTube

Relational operator are symobols such as less than, greater than, less than or equal to, greater than or equal to. Relational operators are used ...