10
0
a,b,c
9,4,5
#include<stdio.h>
int main()
{
int z
z = x>=0?x:-x
return 0;
}
if (size > 12)
{
cost = cost * 1.05;
}
bill = cost * flag;
cost = cost * 1.05;
flag = 2;
bill = cost * flag;
if (ibex > 14)
{
sheds = 3;
}
sheds = 2;
help = 2 * sheds;
sheds = 3;
help = 2 * sheds;
scanf("%d", &score);
if (score < 0)
{
printf("count = %d\n", count);
}
count++;
scanf("%d", &score);
printf("count = %d\n", count);
答案
123456789
1
0. 10
1. 11
2. c
3. b=5c=9 a=5
4. z = a>0 ? a : -a
5.
A:
if (size > 12)
{
cost *= 1.05;
flag = 2;
}
bill = cost * flag;
B
if (ibex > 14) sheds = 3;
else sheds = 2;
help = 2 * sheds;
C
do{
scanf("%d",&score);
if (score < 0) break;
count++
}while (1);
printf("count = %d\n", count);
1111
查看参考答案
.
h
看看
666
0. 请问下边代码将打印多少个 'A'?
100个
1. 请问下边代码会打印多少个 'B'?
10个
2. 请写出表达式 a = b = c = 5 中的"l-value"?
c
3. 请问表达式 a = (b = 3, 4, c = b++ + 5, ++c + ++b); 执行后,整型变量 a、b、c 的值是?
a=9 b=3 c=4
4. 请使用条件运算符求出变量 x 的绝对值,并存放到变量 z 中。
?
5. C 语言其实在大部分情况下不使用 goto 语句也能做得很好,请尝试将下列代码段写成不带 goto 语句的版本。
A:
if (size > 12)
{
cost = cost * 1.05;
flag = 2;
}
else
{
bill = cost * flag;
}
B:
if (ibex > 14)
{
sheds = 3;
}
else
{
sheds = 2;
}
help = 2 * sheds;
C:
do
scanf("%d", &score);
if (score < 0)
{
printf("count = %d\n", count);break;
}
count++;
while(1);
daan
1
踩一踩
1
{:5_96:}
1
1111111111111111111111
看看答案 一直报错