+ 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
1 Antwort
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.