C Programming :: C Preprocessor - Discussion
Home > C Programming > C Preprocessor > MCQs Questions Discussion
32 / 34
What will be output of the following "c" code?
#define SIZE sizeof(int)
main(){ int i=-1;
if( i < SIZE )
printf("True\n");
else
printf("False\n");
}
#define SIZE sizeof(int)
main(){ int i=-1;
if( i < SIZE )
printf("True\n");
else
printf("False\n");
}
ATRUE
BFALSE
Ccan't predict
DNone of these
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
TRICK
Here, when we find sizeof(int) the value will be 4, which is unsigned value. According to type conversion rule when we compare (i<SIZE) then value will be converted and will return false.
Read Full Answer
Report Error
Please Login First Click Here