网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
有以下程序:includevoid swap1(int c[]){int t; t=c[0]; c[0]=c[1]; c[1]=t;}void swa

有以下程序: #include <stdio.h> void swap1(int c[]) { int t; t=c[0]; c[0]=c[1]; c[1]=t; } void swap2(int c0,int c1) { int t; t=c0; c0=c1; c1=t; } main() { int a[2]={3,5},b[2]={3,5}; swap1(a); swap2(b[0],b[1]); printf("%d%d%d%d\n",a[0],a[1],b[0],b[1]); } 其输出结果是( )。

A.5 3 5 3

B.5 3 3 5

C.3 5 3 5

D.3 5 5 3


参考答案

更多 “ 有以下程序:includevoid swap1(int c[]){int t; t=c[0]; c[0]=c[1]; c[1]=t;}void swa 有以下程序: #include <stdio.h> void swap1(int c[]) { int t; t=c[0]; c[0]=c[1]; c[1]=t; } void swap2(int c0,int c1) { int t; t=c0; c0=c1; c1=t; } main() { int a[2]={3,5},b[2]={3,5}; swap1(a); swap2(b[0],b[1]); printf("%d%d%d%d\n",a[0],a[1],b[0],b[1]); } 其输出结果是( )。A.5 3 5 3B.5 3 3 5C.3 5 3 5D.3 5 5 3 ” 相关考题
考题 有以下程序inclUdevoidfun(int*s,intn1,intn2){inti,j,t;i=n1;j=n2;while(i 有以下程序 #inclUde <stdio.h> void fun(int *s,int n1,int n2) { int i,j,t; i=n1; j=n2; while(i<j) {t=s[i];s[i]=s[j];s[j]=t;i++;j--;} } main() { int a[10]={1,2,3,4,5,6,7,8,9,0},k; fun(a,0,3); fun(a,4A.0987654321B.4321098765C.5678901234D.0987651234

考题 有以下程序: include void swap1 (int c0[],int e1[] ){intt;t = c0[0]; c0[0]: c1 [ 有以下程序: #include <stdio, h>void swap1 (int c0[],int e1[] ){ int t; t = c0[0]; c0[0]: c1 [0] ; c1 [0] = t;}void swap2(int * c0,int * c1){ int t; t= *c0; *c0= *c1; * c1 =t;}main( ){ inta[2]={3.5}.b[2]={3,5}; swapl(a,a+1) ;swap2(b[0],b[1]); printf("% d %a %d %d \n" ,a[0] ,a[1] ,b[0] ,b[1] ); }程序运行后的车出结果是( )。A.3 5 5 3B.5 3 3 5C.3 5 3 5D.5 3 5 3

考题 请选出以下程序的输出结果_______。 includesub(int*s,inty){ static int t=3,y=s[t];t 请选出以下程序的输出结果_______。 #include<stdio.h> sub(int*s,inty) { static int t=3, y=s[t];t-; } main() { int a[]={1,2,3,4},i,x=0; for(i=0;i<4;i++){ sub(a,x);printf("%d",x);} printf("\n"); }A.1234B.4321C.0D.4444

考题 请选出以下程序的输出结果()。includesub(int *s,int y){static int t=3; y=s[t];t--;} 请选出以下程序的输出结果( )。 #include <stdio.h> sub(int *s,int y) { static int t=3; y=s[t];t--; } main() { int a[]={1,2,3,4},i,x=0; for(i=0;i<4;i++) { sub(a,x);printf("%d",x); } printf("\n"); }A.1234B.4321C.0D.4444

考题 以下程序的输出结果是( )。 include void swap(int*a,int*B){int*t; t=a;a=b;b=c;} main 以下程序的输出结果是( )。 include<stdio.h> void swap(int*a,int*B){int*t; t=a;a=b;b=c;} main() {int i=3,j=5,*p=i,*q=j; swap(p,q);printf("%d %d\n",*p,*q); }

考题 若MCS-51的所有中断源均处于同一优先级,则它们按自然优先级从高到低的顺序是()A.INT0、T0、INT1、T1、串行口B.T0、INT0、T1、INT1、串行口C.T0、T1、INT0、INT1、串行口D.INT0、T0、INT1、T1

考题 当中断优先级寄存器IP=00010000B时,8051单片机响应中断的顺序为()。A./INT0, T0, /INT1, T1, 串行口B.T0, /INT0, /INT1, T1, 串行口C./INT1, /INT0, T0, T1, 串行口D.串行口, /INT0, T0, /INT1, T1

考题 处于同一级别的5个中断源同时请求中断时,CPU响应中断的次序为 。A.串行口、T1、INT1、T0、INT0B.INT0、T0、INT1、T1、串行口C.串行口、INT1、T1、INT0、T0D.T0、INT0、T1、INT1、串行口E.INT1、T0、T1、串行口

考题 1、按下列中断优先顺序排列,有可能实现的有()。A.T1、T0、INT0、INT1、串行口B.INT0、T0、INT1、T1、串行口C.INT0、INT1、串行口、T0、T1D.INT1、串行口、TO、INTO、T1