ExamVeda
Login
Home
Operators and Expressions
?

Which operator is used for inequality comparison in C?

Answer & Solution
Correct Answer: Option A
In C, the != operator is used for inequality comparison. It checks if two values are not equal and returns true if they are not equal, otherwise, it returns false.

Option B (<>) is not a valid inequality comparison operator in C.
Option C (==) represents the equality operator, used to check if two values are equal, not for inequality comparison.
Option D (=) is the assignment operator, used to assign values to variables, not for comparison.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.