Relational Operators C
Various c relational operators available are operator meaning greater than.
Relational operators c. Relational and comparison operators two expressions can be compared using relational and equality operators. There are total 6 relational operators which are explained below. This chapter will examine the arithmetic relational logical bitwise assignment and other operators one by one. The equality comparison operator is performed by first comparing sizes and if they match the elements are compared sequentially using operator stopping at the first mismatch as if using algorithm equal.
A relational operator is used to check the relationship between two operands. The relational operators in c are. C relational operators specify the relation between two variables by comparing them. There are following arithmetic operators supported by c language assume variable a holds 10 and variable b holds 20 then show examples.
The result of such an operation is either true or false i e a boolean value. Start your free software development course. For example to know if two values are equal or if one is greater than the other. Relational operators for list performs the appropriate comparison operation between the list containers lhs and rhs.
Different relational operators in c.