软考真题
第26题
【C代码1】
#include
int main( )
{
int num=5;

printf("%d/n", ++num);
printf (’’%d/n", num++);
printf("%d/n", num-);
printf("%d/n", num);

return 0;
}
【C代码2】
void func(char ch)
{
while(ch< 'f'){
printf("%c:%d/n", ch, ch);
ch+=2;
}
} 【C代码3】
#define CHARS 5
const int ROWS=5;

void test( )
{
int row;
char ch;

for(row=0; row for (ch='B'+:row; ch< ('B' +CHARS) ; ch++)
putchar(ch);
printf ("/n”);
}
}
(4分)
请给出C代码1运行后的输出结果。
(6分)
已知字符'a'的ASCII码值为十进制数97,请给出调用C代码2中函数func('a')后的输出结果。
(5分)
请给出调用C代码3中函数test( )后的输出结果。
第9章C程序设计
正确答案:
你的答案:
请先在App中激活(应用市场搜“软考真题”)
知识点:
试卷:
2019年 下半年 下午试卷 案例

笔记

呃呃

请先在App中激活(应用市场搜“软考真题”)

2022-10-29


答题卡
加油