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

题目内容 (请给出正确答案)
下列程序的输出结果是()。include f(int a){int b=0; static int c=4; a=c++;b++; retu

下列程序的输出结果是( )。 #include <stdio.h> f(int a) { int b=0; static int c=4; a=c++;b++; return(a); } main() { int a=2,i,c; for(i=0;i<2;i++) c=f(a++); printf("%d\n", c); }

A.4

B.7

C.6

D.5


参考答案

更多 “ 下列程序的输出结果是()。include f(int a){int b=0; static int c=4; a=c++;b++; retu 下列程序的输出结果是( )。 #include <stdio.h> f(int a) { int b=0; static int c=4; a=c++;b++; return(a); } main() { int a=2,i,c; for(i=0;i<2;i++) c=f(a++); printf("%d\n", c); }A.4B.7C.6D.5 ” 相关考题
考题 下列程序的输出结果是()。 include f(int A) {intb=0; staticint c=4; a=c++;b++; retu 下列程序的输出结果是( )。#include<stdio.h>f(int A){intb=0;staticint c=4;a=c++;b++;retum(A) ;}main(){int a==2,i,c;for(i=0;i<2;i++)C=f(a++);printf("%dhn",C) ;}A.4B.7C.6D.5

考题 下列程序的输出结果是()。 include VOid p(int *x) {printf("%d",++*x); } void main() 下列程序的输出结果是( )。#include<stdio.h>VOid p(int *x){ printf("%d",++*x);}void main(){ int y=3;p(y);}A.3B.4C.2D.5

考题 下列程序的输出结果是()。 include f(int a) {int b=0; static int c=4; a=c++;b++; re 下列程序的输出结果是( )。#include<stdio.h>f(int a){ int b=0;static int c=4;a=c++;b++;return(a);}main(){ int a=2,i,c;for(i=0;i<2;i++)C=f(a++);printf("%d\n",c);}A.4B.7C.6D.5

考题 下列程序的输出结果是()。includevoid p(int *x){printf("%d",++*x);}void main(){int 下列程序的输出结果是( )。 #include<stdio.h> void p(int *x) { printf("%d",++*x); } void main() { int y=3; p(y); }A.3B.4C.2D.5

考题 下列程序的输出结果是【 】。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);

考题 下列程序执行输出的结果是______。 include f (int a) {int b=0;static c=7;a=c++; b++ 下列程序执行输出的结果是______。include <stdio.h>f (int a){ int b=0;static c=7;a=c++; b++;return (a);}main(){ int a=2,i,k;for(i=0;i<2;i++)k=f(a++);printf("%d\n", k);}

考题 下列程序的输出结果是()。 include voidp(int*x) {printf("%d",++*x); } voidmain() {i 下列程序的输出结果是( )。#include<stdio.h>voidp(int*x){printf("%d",++*x);}voidmain(){int y=3;p(y);}A.3B.4C.2D.5

考题 下列程序的输出结果是()。include void p(int *x){printf("%d",++*x);}void main(){ in 下列程序的输出结果是( )。 #include <stdio.h> void p(int *x) { printf("%d",++*x); } void main() { int y=3; p(y); }A.3B.4C.2D.5