ExamVeda
Login
Home
Operators and Expressions
?

Which operator is used for equality comparison in C?

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

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

Join the Discussion

No comments yet Be the first to discuss this question.