Hi guys. ↵
↵
~~~~~↵
#include <stdio.h>↵
int main()↵
{↵
if (sizeof(int) > -1)↵
printf("True");↵
else↵
printf("False");↵
return 0;↵
}↵
~~~~~↵
↵
↵
This outputs False. If I give any negative value , the output is False. ↵
↵
I don't understand why. ↵
↵
Shouldn't it be 4>-1 ? ↵
↵
If I replace -1 with 0,1,2 or 3, The output is True.↵
↵
~~~~~↵
#include <stdio.h>↵
int main()↵
{↵
if (sizeof(int) > -1)↵
printf("True");↵
else↵
printf("False");↵
return 0;↵
}↵
~~~~~↵
↵
↵
This outputs False. If I give any negative value , the output is False. ↵
↵
I don't understand why. ↵
↵
Shouldn't it be 4>-1 ? ↵
↵
If I replace -1 with 0,1,2 or 3, The output is True.