C语言小问题请高手帮助答疑 printf ("%d,%d\n", i==5 && c && (j=8), x+y || i+j+k); 中的j=8代表什么? 10
#include<stdio.h>intmain(){charc='k';inti=1,j=2,k=3;floatx=3e+5,y=0.85;printf("%d,%d\...
#include <stdio.h>
int main ()
{
char c = 'k';
int i = 1, j = 2, k = 3;
float 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);
printf ("%d\n", j);
return 0;
}
/*
output result
______________
0,0
1,0
0,1
2_____________
*/ 展开
int main ()
{
char c = 'k';
int i = 1, j = 2, k = 3;
float 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);
printf ("%d\n", j);
return 0;
}
/*
output result
______________
0,0
1,0
0,1
2_____________
*/ 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询