单项选择题

以下程序段的输出结果是( )。
int a=1234;
printf("%2d\n",

A.;A) 12
B.34
C.1234
D.提示出错,无结果
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序: #include <string.h> main() char p[20]='a','b','c','d',q[]= abc ,r[]= abcde ; strcat(p,r); strcpy(p+strlen(q),q); printf( %d n ,strlen(p)); 程序运行后的输出结果是( )。
有以下程序:
#include <string.h>
main()
char p[20]='a','b','c','d',q[]="abc",r[]="abcde";
strcat(p,r); strcpy(p+strlen(q),q);
printf("%d\n",strlen(p));
程序运行后的输出结果是( )。
单项选择题
若要求定义具有10个血型元素的一维数组a,则以下定义语句中错误的是( )。
A.#definme N 10
int a[N];
B.#define n 5
int a[2*n];
C.int a[5+5];
D.int n=10,a[n];
相关试题
  • 以下程序中,函数SumColumMin的功能足:求...
  • 下面程序的运行结果是 【17】 。 int...
  • 以下程序运行后的输出结果是 【16】 。...
  • 以下程序中函数f的功能是在数组x的n个数(...
  • 以下程序运行后的输出结果是 【13】 。...