+ 1

Can we compare two floating point numbers in C programming without using a third variable

a concept of floating point number in C programming

31st Dec 2018, 2:29 AM
SATYAM ROY
SATYAM ROY - avatar
1 Answer
0
I don't know C, but this should work in all programming languages. (x>10)*(y==100) * can be used as "and", only when both conditions are not 0, this will not be 0. (x<2)+(y!=50) + can be used as "or", only when both conditions are 0, this will be 0.
31st Dec 2018, 11:14 AM
Seb TheS
Seb TheS - avatar