Relational Operators In
CCLanguage
email: shujatabbas9@gmail.com
FB/syedshujaatabbaszaidi@fb.com
Relational Operators
Relational operators compare two values.
There are 6 relational operators
Relational Operators
Relational Operators
Relational Operators
Output
Input and Output
• Input
– scanf(“%d”,&a);
– Gets an integer value from the user and
stores it under the name “a”
• Output
– printf(“%d”,a);
– Prints the value present in variable a on the
screen
7

Relational operators In C language (By: Shujaat Abbas)

Editor's Notes

  • #8 Format specifiers %d is the format specifier. This informs to the compiler that the incoming value is an integer value. Other data types can be specified as follows: %c – character %f – float %lf – double %s – character array (string) Printf and scanf are defined under the header file stdio.h