单项选择题

下面程序的运行结果是
include<stdio.h>
main()
int a=28,b;
char s[10],*p;
p=s;
dob=a%16;
if(b<10) *p=b+48;
else*p=b+55;
p++;
a=a/5;
while(a>0);
*p=’\0’;
puts(s);

A.10
B.C2
C.C51
D.\0
<上一题 目录 下一题>
热门 试题

单项选择题
下列程序执行后的输出结果是 void func1(int i); void func2(int i); char st[]= hello,friend!”; void func1(int i) printf( %c ,st[i]); if(i<3)i+=2;func2(i); void func2(int i) printf( %c ,st[i]); if(i<3)i+=2;func1(i); int i=0;func1(i);printf( n );
A.hello
B.hel
C.hlo
D.hlm
单项选择题
判断char型变量c1是否为大写字母的正确表达式是
A.'A'<=c1<='Z'
B.(c1>=A)&&
C.('A'>=c1)||('Z'<=c1)
D.(c1>='A')&&(c1<='Z')
相关试题
  • 以下程序段的功能是统计链表中结点的个数,...
  • 以下程序用来输出结构体变量ex所占存储单元...
  • 以下程序的运行结果是 【12】 。 #in...
  • 以下程序是用递归方法求数组中的最大值及其...
  • 以下程序的输出结果是 【17】 。 #in...