I'm fairly new to coding and had a question regarding the output of a program I've recently encountered. Here's the code:
#include <stdio.h>
int main(void) {
unsigned char x = 16;
x = x * 16;
if (x) {
printf("True.\n");
}
else {
printf("False.\n");
}
return 0;
}
The output of this program is apparently "False.\n". I have two questions regarding this:
- What does it mean if the argument of a conditional statement is simply a variable?
- Why is the output "False.\n"?
Thank you! Any word of advice or tips are greatly appreciated.