Weird comparison
an anonymous user
·
C
#include <stdio.h>
void Test(int A);
int main() {
Test(0);
Test(5);
Test(11);
return 0;
}
void Test(int A)
{
int B = (A < 1) >= (A > 10);
printf("%d : %d\n", A, B);
}
Output
Embed on website
To embed this program on your website, copy the following code and paste it into your website's HTML:
Comments
This comment belongs to a banned user and is only visible to admins.
This comment belongs to a deleted user and is only visible to admins.