Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Value range of constants in C language
Value range of constants in C language
# include & ltstdio.h & gt

void main()

{unsigned length x;

scanf("%ul ",& ampx);

int y;

if(x & gt; 1。 & ampx & lt 100000)y = 3;

else y = 4;

printf("y=%d\n ",y); }

That's it. That's it.

note:

1 & lt; X< 100000 means:

Compare 1 with x first, if 1

Then compare the true and false values with 100000.

Some compilers prompt for type conversion.

Pay attention to the correct usage: x> 1. & ampx & lt 100000

Equivalent to (x>1); & amp(x & lt 100000)

& & Logic and the Meaning of "Harmony" in Chinese