答案查看网,轻松搜题/搜资源
登录
×
登录账号
记住密码
立即注册
忘记密码
×
注册
使用微信扫描二维码,获取账号密码后免费查看答案
前往登录
忘记密码
×
忘记密码
使用微信扫描下方二维码,即可找回您的账号密码
前往登录
立即注册
搜题/搜资源
【多选题】【消耗次数:1】
如果输入的是5,以下程序运行结果不正确的是() #include #define M n+n void main( ) { int n; int result; printf(请输入一个整数:); scanf(%d, result=M*M; printf(result = %d\n,result); }
①
100
②
35
③
25
④
50
参考答案:
复制
纠错
相关题目
【单选题】
以下程序运行结果是( )。 Main() {int if(m++5) printf(%d\n else printf(%d\n,m--); }
①
4
②
5
③
6
④
7
查看完整题目与答案
【单选题】
以下程序的运行结果是: main() {int m=5; if(m++5) printf(%d\n else printf(%d\n,m--); }
①
4
②
5
③
6
④
7
查看完整题目与答案
【简答题】
计算两个整数n和m(m1000)之间所有数的和。n和m从键盘输入。例如,当n=1,m=100时,sum=5050,当n=100,m=1000时,sum=495550。 #include#includemain() { int n,m; int sum; /************found************/[填空1] printf(\nInput n,m\n scanf(%d,%d,n, while( n=m ) { /************found************/[填空2] n++; } printf(sum=%d \n,sum); }
查看完整题目与答案
【单选题】
输入10,该程序的运行效果是() #include void main() { int a=15,b=25; intp= intq= q=p; printf(%d ,%d\n,*p,*q); }
①
15,15
②
15,25
③
25,15
④
25,25
查看完整题目与答案
【单选题】
下面程序的输出是 int fun3(int x) {static int a=3; a+=x; return(a); } void main() {int k=2,m=1,n; n=fun3(k); n=fun3(m); printf(%d\n }
①
3
②
4
③
6
④
9
查看完整题目与答案
【单选题】
以下程序的输出结果是() int a, b; void fun( ) { a=100; b=200; } main( ) { int a=100, b=100; fun( ); printf(%d%d \n, a,b); }
①
100200
②
100100
③
200100
④
200200
查看完整题目与答案
【单选题】
下述程序的运行结果( )。 #includevoid main() { int a=1,b=2,c=3; if(c=a)printf(%d\n else printf(%d\n }
①
1
②
3
③
5
④
6
查看完整题目与答案
【单选题】
下述程序的运行结果( )。 #includevoid main() { int p,a=0; if(p=a!=0)printf(%d\n else printf(%d\n,p+2); }
①
1
②
2
③
3
④
5
查看完整题目与答案
【单选题】
下述程序的运行结果( )。 #includevoid main() { int n; for(n=1;nn++) { if(n%3==0)continue; printf(%d } }
①
12345678
②
124689
③
12457810
④
1234456
查看完整题目与答案
【单选题】
下面程序的输出结果是()。 #include int num=10; func( ) {int num=4; return ++num; } void main( ) { printf(%d\n, func( ) ) ; }
①
4
②
5
③
10
④
11
查看完整题目与答案
随机题目
【单选题】
The eldest child is thoroughly ____ because they always give him whatever he wants.
①
wasted
②
spoiled
③
destroyed
④
uneducated
查看完整题目与答案
【单选题】
When she saw the clouds, she went back to the house to ____ her umbrella.
①
bring
②
fetch
③
take
④
carry
查看完整题目与答案
【单选题】
The new cut in interest rate ____ promote domestic investment.
①
means to
②
directs toward
③
is meant to
④
leads to
查看完整题目与答案
【单选题】
—__________fine day it is today!—Yes, the sunshine is__________beautiful that Id like to go swimming in the sea.
①
How, such
②
What a, very
③
How, so
④
What a, so
查看完整题目与答案
【单选题】
By cutting down trees we ____ the natural home of birds and animals.
①
harm
②
hurt
③
injure
④
damage
查看完整题目与答案
【单选题】
Nowadays, many people suffer from _________ depression under the pressure of working.
①
acute
②
sharp
③
quick
④
cute
查看完整题目与答案
【单选题】
Something must have happened on their way. Or they_____ by now.
①
should have arrived
②
should arrive
③
would have arrived
④
would arrive
查看完整题目与答案
【单选题】
The treasury issued an order stating that ____ land purchased from the government had to be paid for in gold and silver.
①
henceforth
②
moreover
③
whereby
④
however
查看完整题目与答案
【单选题】
If a substance is dissolved in water or heated, it may ____ a gas.
①
give into
②
give over
③
give off
④
give away
查看完整题目与答案
【单选题】
A(n)____ person is one who has much knowledge and the ability to use it well.
①
smart
②
intelligent
③
clever
④
wise
查看完整题目与答案