单项选择题
有以下程序:
#include <stdio.h>
main()
int x=1, y=2, z=3;
if (x>y)
if (y<z) printf("%d",++z);
else printf("%d",++y);
printf("%d\n",x++);
程序的运行结果是( )。
A.331
B.41
C.2
D.1
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
有以下函数: int aaa(char *s) char *t=s; while(*t++); t--; return(t-s); 以下关于aaa函数的功能的叙述正确的是( )。
A.求字符串s的长度
B.比较两个串的大小
C.将串s复制到串t
D.求字符串s所占字节数
点击查看答案
单项选择题
#define能做简单的替代,用宏替代计算多项式4*x*x+ 3*x+2之值的函数f,正确的宏定义是( )。
A.#define f(x) 4*x*x+3*x+2
B.#define f 4*x*x+3*x+2
C.#define f(a) (4*a*a+3*a+2)
D.#define (4*a*a+3*a+2) f(a)
点击查看答案
相关试题
有以下程序: intfun(int x[],int n...
有以下程序: #include <stdio.h> ...
设有如下定义: struct ss char name[...
若程序执行时输入的数据是“2473”,则...
以下程序的运行结果是( )。 main() ...