单项选择题

以下程序的输出结果是( )。
#include<stdio.h>
#define F(x)2.84+x
#define w(y)printf("%d",(int)(y))
#define P(y)w(y)
main()
int x=2;
P(F(5)*x);

A) 12
B) 13
C) 14
D) 16
<上一题 目录 下一题>
热门 试题

单项选择题
若有定义:char *st= how are you ;,下列程序段中正确的是
A) chara[11];*p;strcpy(p=a+1,&st[4]);
B) chara[11];strcpy(++a,st);
C) chara[11];strcpy(a,st);
D) chara[],*p;strcpy(p=&a[1],st+2);
单项选择题
有以下程序 #include<stdio.h> void fun(int a, int b) int t; t=a; a=b; int c[10]=1,2,3,4,5,6,7,8,9,0,i; for(i=0;i<10;i+=2) fun(c[i],c[i+1]); for(i=0;i<10;i++) printf( %d, ,c[i]); printf( n ); 程序的运行结果是()。

A. 1,2,3,4,5,6.7,8,9,0,
B. 2,1.4.3.6,5.8,7,0,9,
C. 0,9,8,7,6,5,4,3,2,1,
D. 0,1,2,3,4,5,6,7,8,9,

相关试题
  • 以下程序的输出结果是( )。 #include...
  • 有下列程序: #include<stdio.h> str...
  • 下列程序执行的输出结果是( )。 #inCl...