以下程序的输出结果是( )。 #include<stdio.h> #define FUDGE(y) 2.84+y #define PR(a)printf("%d",(int)(a)) #define PRINT1(a)PR(a);putchar('\n') main() {int x=2;PRINT1(FUDGE(5)*x);}
A.11
B.12
C.13
D.15
A.11
B.12
C.13
D.15
A.86420
B.975311
C.97531
D.864200
以下程序输出的结果是()。 #include <stdio.h> main() { int i=010,j=10; printf("%d,%d\n:,++i,j--); }
A.11,10
B.9,10
C.010,9
D.10,9
A.zhangJoneNatan
B.ChinaAmericaJapan
C.zhang:ChinaJone:AmericaNatan:Japan
D.“zhang””Jone””Natan”
A.z
B.0
C.元素ch[5]的地址
D.字符y的地址
A.5
B.4
C.6
D.不确定
以下程序#include "stdio、h"main(){ char *p="ABCDEF",*q;q=p+3;printf("%s/n",q);}的输出结果是()。
以下程序的输出结果是()。 #include<iostream> #include<stdlib> using namespace std; void func(char **m) { ++m; cout<<*m<<endl; } main() { static char *a[]={"MORNING","AFTERNOON","EVENING"); char **n; n=a; func(n); system("PAUSE"); return 0; }
A.为空
B.MORNING
C.AFTERNOON
D.EVENING
以下程序的输出结果是()。 Option Base 1 Private Sub Command1_Click() Dim a(10),p(3) as Integer k=5 For I-1 to 10 a(i)=I Next I For j=1 to3 p(i)=a(I*j) Next j For I=l to 3 k=k+ p (I)*2 Next I Print k End Sub
A.33
B.28
C.35
D.37