#include <stdio.h> main{ int nX=2; do{ nX=nX*nX; } while(!nX); printf("nX=%d\n",nX); } 程序运行的结果是:
第2题
A.741
B.963
C.852
D.875421
第3题
第4题
A.-l
B.0
C.1
D.7
第5题
include <stdio.h>
main( )
{ int a=7;
while(a--);
print[("%d\n",a);
}
程序运行后的输出结果是( )。
A.-1
B.0
C.1
D.7
第6题
include<stdio.h>
main( )
{int X=011;
printf("%d\n",++x);
}
程序运行后的输出结果是( )。
A.12
B.11
C.10
D.9
第7题
#include <stdio.h>
int f(int x,int y)
{ return ((y-x)*x);}
main()
{ int a=3,b=4,c=5,d;
d=f(f(a,b),f(a,c));
printf("%d\n",d);
}
程序运行后的输出结果是
A)10
B)9
C)8
D)7
第8题
#include <stdio.h>
#include <string.h>
int main(int argc, char *argv[]) {
int i = 1;
char buf[4];
strcpy(buf, "AAAA");
printf("%d\n", i);
return 0;
}
a) When compiled and executed on x86, why
does this program usually not
output what the programmer intended?
第9题
#include<stdio.h>
int f(int x,int y)
{return()y-x)*x);}
main()
{int a=3,b=4,c=5,d;
d=f(f(a,b),f(a,c));
printf(“%d\n”,d);
}
程序运行后的输出结果是
A)10 B)9 C)8 D)7
第10题
A.2,3
B.2,4
C.3,4
D.4, 6
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!