0 6

BIT102 ยท 0 ยท 5 marks

What are relational operators and arithmetic operators? Write a C code to check if a given number is odd or even.

What are relational operators and arithmetic operators? Write a C code to check if a given number is odd or even. [5]

C ProgrammingChapter 3: Operators and ExpressionsRelational operators

Relational operators are used to compare two values or expressions. They return either true (1) or false (0) based on the comparison. Operator Meaning Example ---------------------------- == Equal to a == b != Not equal to a != b Greater than a b < Less than a < b = Greater than or equal to a = b...