填空题
以下程序能将字符串Program!反向打印出来,请填空。
#include<stdio.h>
void out(char *str)
{char *s=______;/*第一空*/
if(*S==NULL)return;
while(______)s++;/*第二空*/
s--;
printf("%c\n",*s);
*s=NULL;
______;/*第三空*/
}
main()
{char c[]="Program!";
out(c);}
【参考答案】
str
*s
out(str)
热门
试题
问答题
int f1(int x,int y){return x>yx:y;}int f2(int x,int y){return x>yy:x;}main(){int a=4,b=3,c=5,d,e,f;d=f1(a,b);d=f1(d,e);e=f2(a,b);e=f2(e,c);f=a+b+c-d-e+2;printf( %d,%d,%d n ,d,f,e);}