C语言学的明白的请进~

2025-01-05 09:27:33
推荐回答(4个)
回答1:

(147)C
(98)D
(39)
int main()
{int day,x1,x2;
day=0;x1=1020;
while(x1>0)
{x2=x1/2-2; x1=x2;day++;}
printf("day=%d\n",day);
}
(60)
sizeof(a)==16
sizeof(a.share)==4

回答2:

C D
while(x1>0){x2 = x1/2-2;
16,4

回答3:

C

D

while(x1)
x1/2-2

16 4

回答4:

C D
while(x1>=0)
{x2=x1/2-2; x1=x2;day++;}
16 4