填空题

已知字符A的ASCII代码值为65,以下程序运行时若从键盘输入:B33<回车>,则输出结果是 【11】 。 #include <stdio.h> main() { char a,b; a=getchar();scanf("%d",&b); a=a-’A’+’0’;b=b*2; printf("%c%c\n",a,b); }

【参考答案】

1 B
<上一题 目录 下一题>
热门 试题

填空题
以下程序中,fun函数的功能是求3行4列二维数组每行元素中的最大值。请填空。void fun(int,int,int(*)[4],int*);main(){ int a[3][4]={{12,41,36,28},{19,33,15,27},{3,27,19,1}},b[3],i;fun(3,4,a,b);for(i=0;i<3;i++)printf( %4d ,b[i]);printf( n );}void fun(int m,int n,int ar[][4],int *br){ int i,j,x;for(i=0;i<m;i++){ x=ar[i][0];for(j=0;j<n;j++)if(x<ar[i][j])x=ar[i][j];【12】 =x;}}
填空题
以下程序运行后的输出结果是 【10】 。main(){ char Cl,c2;for(c1=’0’’c2=’9’;c1<c2;c1++,c2--) printf( %c%c ,c1,c2);printf( n );}
相关试题
  • 以下程序运行后的输出结果是 【16】 。...
  • 以下程序运行后的输出结果是 【17】 。...
  • 以下程序中函数huiwen.的功能是检查一个字...
  • 以下程序运行后的输出结果是 【15】 。...
  • 以下程序运行后的输出结果是 【14】 。...