c - function to compare three values -


let if declare 3 variable (int) a,b,c. , want know if value of 2 of 3 of equal or not. there kind of function in c me through this? or should make use of if else statement?

your check:

int two_are_equal; two_are_equal = == b || b == c || == c; 

Comments