单项选择题

数字字符0的ASCII值为48,若有以下程序:
main()
char a='1',b='2';
printf("%c,",b++);
printf("%d\n",b-a);

程序运行后的输出结果是()。

A. 3,2
B. 50,2
C. 2,2
D. 2,50

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

单项选择题
有以下的程序 #include<stdio.h> void fun(char *fname,char *st) FILE *myf; int i; myf=fopen(fname, w ); for(i=0;i<strlen(st);i++)fputc(st[i],myf); fclose(myf); main() fun( test.t , new world );fun( test.t , hello, ); 程序执行后,文件test.t中的内容是()

A. hello,
B. new worldhello,
C. new world
D. hello,rld

单项选择题
以下程序的输出结果是() #include <stdio.h> sub(int*s,int y) static int t=3; y=s[t];t--; main() int a[]=1,2,3,4,i,x=0; for(i=0;i<4;i++) sub(a,x);printf( %d ,x); printf( n );

A. 1234
B. 4321
C. 0000
D. 4444

相关试题
  • 假定int类型变量占用两个字节,若有定义:i...
  • 以下程序的输出结果是() #include <s...
  • 下列程序的输出结果为()。 main() un...
  • 下列队列的描述中,正确的是( )。
  • 下列关于算法的时间复杂度陈述正确的是()