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

题目内容 (请给出正确答案)
下列程序的运行结果是()。includevoid fun(int*s,int*p){ static int t=3;*p=s[t];t--;

下列程序的运行结果是( )。#include<stdio.h>void fun(int*s,int*p){ static int t=3; *p=s[t]; t--;}void main(){ int a[]={2,3,4,5),k; int x; for(k=0;k<4;k++) { fun(a,&x); printf("%d,",x); }}

A.5,4,3,2

B.2,3,4,5,

C.2,2,2,2,

D.5,5,5,5,


参考答案

更多 “ 下列程序的运行结果是()。includevoid fun(int*s,int*p){ static int t=3;*p=s[t];t--; 下列程序的运行结果是( )。#include<stdio.h>void fun(int*s,int*p){ static int t=3; *p=s[t]; t--;}void main(){ int a[]={2,3,4,5),k; int x; for(k=0;k<4;k++) { fun(a,x); printf("%d,",x); }}A.5,4,3,2B.2,3,4,5,C.2,2,2,2,D.5,5,5,5, ” 相关考题
考题 以下程序的输出结果是______。 fun(int *s,int *p) { static int t=3; *p=s[t]; t--; } main() { int str[]={1,2,3,4},i,m=0; for(i=0;i<4;i++) {fun(str,m); printf("%d",m); } printf("\n"); }A.0B.444412C.1234D.4321

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

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

考题 下列程序的运行结果是()。includevoid fun(int*s,int*p){static int t=3; *p=s[t]; t-- 下列程序的运行结果是( )。 #include<stdio.h> void fun(int*s,int*p) { static int t=3; *p=s[t]; t--; } void main() { int a[]={2,3,4,5},k; int x; for(k=0;k<4;k++) { fun(a,x); printf("%d,",x); } }A.5,4,3,2B.2,3,4,5,C.2,2,2,2,D.5,5,5,5,

考题 下列程序的运行结果是()。 include voidfun(int*s,int*p) {static int t=3; *p=s[t]; t 下列程序的运行结果是( )。#include<stdio.h>voidfun(int*s,int*p){ static int t=3;*p=s[t];t--;}void main(){ int a[]={2,3,4,5},k;int x;for(k=0;k<4;k++){ fun(a,x);printf("%d,",x);}}A.5,4,3,2B.2,3,4,5,C.2,2,2,2,D.5,5,5,5,

考题 下列程序的运行结果是()。includevoid fun (int*s,int*p){ static int t=3; *p=s [t]; 下列程序的运行结果是( )。 #include<stdio.h> void fun (int*s,int*p) { static int t=3; *p=s [t]; t--; } void main() int a[]={2, 3, 4, 5},k; int x; for(k=0; k<4; k++) { fun (a, x); printf("%d,", x); }A.5,4,3,2B.2,3,4,5,C.2,2,2,2,D.5,5,5,5,

考题 下列程序运行后,输出结果是______。 include include fun(char *w ,int 下列程序运行后,输出结果是______。 #include <stdio. h> #include <string. h> fun (char *w ,int n) { char t,*s1,*s2; s1=w; s2=w+n-1; while (s1<s2) { t=*s1++; *s1=*s2--; *s2=t; } } main () { char *p; p="1234567"; fun (p, strlen (p)); puts (p); }A.1234567B.7654321C.1711717D.7177171

考题 下列程序的运行结果是( )。 #includestdio.h void fun(int*S,int*p) { static int t=3: *p=s[t]; t--; } void main { int a[]={2,3,4,5),k; int x; for(k=0,k4,k++) { fun(a,&x); printf("%d,",x); } }A.5,4,3,2B.2,3,4,5C.2,2,2,2D.5,5,5,5

考题 下列程序的运行结果是( )。#includestdio.hvoid fun(int*S,int*p){ static int t=3:*p=s[t];t--;}void main{ int a[]={2,3,4,5),k;int x;for(k=0,k4,k++){ fun(a,&x);printf(%d,,x);}}A.A.5,4,3,2B.2,3,4,5C.2,2,2,2D.5,5,5,5