求解
#include<stdio.h>void main()
{
char c = 'k';
int i = 1,j = 2,k = 3;
double x = 3e+5,y = 0.85;
printf("%d,%d\n",!x*!y!!!x);
printf("%d,%d\n",x||i&&j-3,i<j&&x<y);
printf("%d,%d\n",i==5&&c&&(j=8),x+y||i+j+k);
}
为什么?
C:\Users\CARRY\Desktop\C语言\17\1.c(8) : error C2143: syntax error : missing ')' before '!'
printf("%d,%d\n",!x*!y!!!x);这行少了一个逗号,应该是 printf("%d,%d\n",!x*!y,!!!x);
页:
[1]