#include <stdio.h>
volatile int i;
int main()
{
int c;
for (i = 0; i < 3; i++)
{
c = i &&& i;
printf("%d\n", c);
}
return 0;
}
使用编译的上述程序的输出gcc
是
0
1
1
使用-Wall
or-Waddress
选项,gcc
发出警告:
warning: the address of ‘i’ will always evaluate as ‘true’ [-Waddress]
c
在上述计划中如何评估?