1、请用一个条件表达式写出:如果c的值是大写字母,则将其转换成对应的小写字母,否则其值不变。
2、请写一个C表达式,如果整型数a的个位数字是5,则表达式的值为非0,否则为0。
3、将下面if-else语句改成一个条件表达式语句。{
}
4、将下列嵌套的条件语句用switch语句改写,且功能等效(其中m是:1≤m<5的浮点类型数据)。{
}
5、下面程序的输出结果是什么。
#include<stdio.h>
int d=1;
int fun(int p)
{
static int d=5;
d+=p;
printf("%5d",d);
return d;
}
void main( )
{
int a=1;
printf("%5d\n",fun(a+fun(d)));
}
6、C语言以上代码使用_______软件编写.