C语言,while(!=0)s+=++x;如何运行的,

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/03 02:12:56

C语言,while(!=0)s+=++x;如何运行的,
C语言,while(!=0)s+=++x;如何运行的,

C语言,while(!=0)s+=++x;如何运行的,
x!=0为假时,即x=0时
s += ++x
s = s+(++x)(++x X的值+1)
s= s + (x+1)
s = s + 1(因为x=0)