单项选择题
下列程序
main()
char arr[2][4];
strcpy(arr,"you");
strcpy(arr[1],"me");
arr[0][3]='&';
printf("%s \n",arr);
执行后的输出结果是 ( )
A.you&me
B.you
C.me
D.err
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序: int m=1; void fun(int *n) static int m=2; *n*=m-1; m+=2; main() int i; for(i=1;i<4;i++) fun(&m); printf( %d ,m); 程序的输出结果是 ( )
A.1317
B.2630
C.1315
D.1111
点击查看答案
单项选择题
下面宏定义正确的是 ( )
A.#define S a*b
B.#define PI 3.14;
C.#define max(a,b) ((a) >(b) (a) ;(b) )
D.#define s(x) (x)*(x);
点击查看答案
相关试题
以下程序的输出结果是 ( ) # includ...
有以下程序 #include<stdio.h> void...
有如下程序 #include<stdio.h> main...
有以下程序: int fa(int x) return...
若题中各变量已正确定义并赋值,下面符合C...