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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -