为什么会这样哦
#include <stdio.h>
void main ()
{
printf("0 & 0 is %d\n", 0 & 0);
printf("0 & 1 is %d\n", 0 & 1);
printf("1 & 1 is %d\n", 1 & 1);
printf("1 & 2 is %d\n", 1 & 2);
printf("15 & 127 is %d\n", 15 & 127);
}
我也不知道我记没记错哦
为什么不能用以下这样呢
#include <stdio.h>
void main ()
{
printf("0 & 0 is %d\n", 0 && 0);
printf("0 & 1 is %d\n", 0 &&1);
printf("1 & 1 is %d\n", 1 && 1);
printf("1 & 2 is %d\n", 1 && 2);
printf("15 & 127 is %d\n", 15 && 127);
}