So, I have these 2 questions?
#include <stdio.h>
int main(void)
{
float a = 0.7;
if (0.7 > a)
printf("Hi\n");
else
printf("Hello\n");
return 0;
}
What will be the output of this? According to me, it should be "Hello".
Secondly, I have,
#include <stdio.h>
int main(void)
{
int a=500,b=100,c;
if (!a >= 400)
b=300;
c=200;
printf("%d %d\n",b,c);
return 0;
}
As much as I understand, output should be,
100 200
Because !a means, not a , which means, a value which is not 500 is compared with 400 and it can be either greater than or less than 400, so why will it be 300?