单选题设有定义int m=1,n=-1;则执行语句printf(〞%d/n〞,(m--++n));后的输出结果是()A-1B0C1D2

单选题
设有定义int m=1,n=-1;则执行语句printf(〞%d/n〞,(m--&&++n));后的输出结果是()
A

-1

B

0

C

1

D

2


参考解析

解析: 暂无解析

相关考题:

设有定义: float x=123.4567; ,则执行以下语句后的输出结果是 【 6 】 。printf("%f\n",(int)(x*100+0.5)/100.0);

若有定义 : float x=1.5; int a=1,b=3,c=2; 则正确的 switch 语句是A)switch(x){ case 1.0: printf("*\n");case 2.0: printf("**\n");}B)switch((int)x);{ case 1: printf("*\n");case 2: printf("**\n");}C)switch(a+b){ case 1: printf("*\n");case 2+1: printf("**\n");}D)switch(a+b){ case 1: printf("*\n");case c: printf("**\n");}

阅读下面语句,则程序的执行结果是 【7】 。#include "stdio.h"main(){ int a=-1,b=1,k;if((++a 0)!(b--=0))printf("%d,%d\n",a,b);else printf( "%d,%d\n",b,a);}

若有定义:float x=1.5;int a=1,b=3,c=2;,则正确的switch语句是A.switch(x) {case 1.0:printf("*\n"); case 2.0:printf("**\n");}B.switch((int)x); {case 1:printf("*\n"); case 2:printf("**\n");}C.switch(a+B) {case 1:printf("*\n"); case 2+1:printf("**\n");}D.switch(a+B) {case 1:printf("*\n"); case c:printf("**\n");}

定义int a=5,b=20;若执行语句printf("%d\n",++a*--b/5%13);后,输出的结果为 【6】 。

设有如下定义:int x=1,y=-1;则下列语句的输出结果是______。printf("%d\n",(x--++y));A.1B.0C.-1D.2

执行以下程序的输出结果是( )。 includedefine M 5define N M+M main(){int k; k=N*N*5; 执行以下程序的输出结果是( )。include<stdio.h>define M 5define N M+Mmain(){ int k;k=N*N*5;printf(”%d\n" ,k);}

运行以下程序后,如果从键盘上输入6514,则输出结果为______。 main() { int m,n; printf("En 运行以下程序后,如果从键盘上输入6514<回车>,则输出结果为______。 main() { int m,n; printf("Enter m,n:"); scanf("%d%d",m,n); while(m!=n) { while(m>n)m-=n; while(n>m)n-=m; } printf("m=%d\n",m); }A.m=3B.m=2C.m=1D.m=0

已知int k=10,m=3,n;则下列语句输出结果是printf("%d\n",n=(k%m,k/m));A.2B.3C.4D.5

设有定义:float x=123.4567;,则执行以下语句后的输出结果是[ ]。printf("%f\n"(int)(x*100+0.5)/100.1;

若有如下程序: int sub(int m) { if(m==1||m==0) return 2; else return(sub(m-1)*sub(m-2));} main() { int n; scanf("%d",n); printf("%d",sub(n)); } 如果从键盘输入4<回车>,则程序运行后的输出结果是( )。A.8B.16C.24D.32

设有如下定义 int x=10,y=3,z; 则语句 printf("%d\n",z=(x%y,x/y)); 的输出结果是( )A.3B.0C.4D.1

设有说明:int a=1,b=0;,则执行以下语句的输出结果是______。 switch(a) {case 1: switch(b) {case 0:printf("**0**\n");break; case 1:printf("**1*\n");break; } case 2:printf("**2**\n");break; }A.**0**B.**0** **2**C.**0** **1** **2**D.switch语句中存在语法错误

设有如下定义: int x=10,y=3,z; 则语句printf("%d\n",z=(x%y,x/y)); 的输出结果是( )。A.1SX 设有如下定义: int x=10,y=3,z; 则语句printf("%d\n",z=(x%y,x/y)); 的输出结果是( )。A.1B.0C.4D.3

已知int a=1,b=-1;则语句printf("%d\n",(a--,++b));的输出结果是A.-1 B.0 C.1 D.语句错误

若有以下程序main(){ int p=5,a=5; if(p=1!=0) printf("%d\n",p); else printf("%d\n",p+2);}程序执行后的输出结果是

执行以下语句后的输出结果是______。int x=10,y=3,z;printf("%d\n",z=(x%y,x/y));A.1B.0C.4D.3

有以下程序: #includestdio.h int f(int x): main {int n=1,m; m=f(f(f(n)));printf("%d\n",m); } int f(int x) {return x*2;) 程序运行后的输出结果是( )。A.1B.2C.4D.8

若有如下程序: int sub() {static int n=1; int x=1; x*=n;n++; return x; } main() {int n,t=1; for(n=1;n<6;n++)t*=sub(); printf("%d\n",t); } 则程序运行后的输出结果是( )A.15B.120C.34560D.-30976

有以下程序:includestdio.hint f(int x):main{int n=1,m;m=f(f(f(n)));printf(%d\n,m);}int f(int x){return x*2;)程序运行后的输出结果是( )。A.1B.2C.4D.8

设有如下定义:int x=l,y=-1;,则语句:printf("%d/n",(x--++y));的输出结果是()A、1B、0C、-1D、2

设有说明语句:int x=1;,语句printf(“%d/n”,-x++);的输出结果是()A、-1B、0C、1D、2

执行下列语句后的输出为().   int j=-1;  if(j=1) printf("****/n");   else     printf("%%%%/n");A、****B、%%%%C、%%%%cD、有错,执行不正确

设有如下定义:intx=l,y=-1;,则语句:printf(""%d/n"",(x--++y));的输出结果是()A、1B、0C、-1D、2

设有定义int m=1,n=-1;则执行语句printf(〞%d/n〞,(m--++n));后的输出结果是()A、-1B、0C、1D、2

单选题设有定义int m=1,n=-1;则执行语句printf(〞%d/n〞,(m--++n));后的输出结果是()A-1B0C1D2

单选题设有说明语句:int x=1;,语句printf(“%d/n”,-x++);的输出结果是()A-1B0C1D2

单选题设有如下定义:intx=l,y=-1;,则语句:printf(""%d/n"",(x--++y));的输出结果是()A1B0C-1D2