Relational Operators
< Less than A<B A is less than B
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
_________________________________________________________________________________
________________________________________________________________________________
== Equality A == B
Compares the two variables ‘A’ and ‘B’ and checks for equality between these variables. If the variables seem to have equal values stored in them then the expression returns the integer value ‘1’ otherwise it returns the integer value ‘0’.
Note: The values ‘1’ and ‘0’ are not any random values but are ‘Boolean digits’ where ‘1’ corresponds to the expression being true and ‘0’ corresponds to the expression being false.
No comments:
Post a Comment