单项选择题
下列选项中不会引起二义性的宏定义是( )。
A) #define S(x)x*x
B) #define S(x)(x)*(x)
C) #define S(x)(x*x)
D) #define S(x)((x)*(x))
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
若已包括头文件<stdio.h>和<string.h>,运行下列程序段时输出结果是( )。 int i=0; char s1[10]= ABCD ,s2[10]= EFG ; strcat(s1,s2); while(s2[i++]!=' 0') s2[i]=s1[i]; puts(s2);
A) ABC
B) ABCDEF
C) EBCDEFG
D) CBD
点击查看答案&解析
单项选择题
阅读下列程序,当运行函数时,输入asd af aa z67,则输出为 #include <stdio.h> #include <ctype.h> #inelude <string.h> int fun(char *str) int i,j=0; for(i=0;str[i]!=' 0';i++) if(str[i]!='')str[j++]=str[i]; str[j]=' 0'; main() char str[81]; int n; printf( Input a string: ); gets(str); puts(str); fun(str); printf( %s n ,str);
A) asdafaaz67
B) asd af aa z67
C) asd
D) z67
点击查看答案&解析
相关试题
在int (*prt)[3];定义中,标识符pr...
有以下程序int a=2;int f(int n) ...
以下对结构体类型变量td的定义中,错误的是...
执行以下程序后,test.txt文件的内容是(...
有以下程序 #include<stdio.h> main...