有以下程序 #includestdio.h void fun(int p) {int d=2; p=d++;printf("%d".p);} main( ) {int a=1; fun(a):printf("%d\n",a);) 程序运行后的输出结果是( )。A.32B.12C.21D.22

有以下程序 #include<stdio.h> void fun(int p) {int d=2; p=d++;printf("%d".p);} main( ) {int a=1; fun(a):printf("%d\n",a);) 程序运行后的输出结果是( )。

A.32

B.12

C.21

D.22


相关考题:

有以下程序#include stdio.h#include stdlib.hint fun(int n){ int *p;p=(int*)malloc(sizeof(int));*p=n; return *p;}main(){ int a;a = fun(10); printf("%d\n",a+fun(10));}程序的运行结果是A)0B)10C)20D) 出错

以下程序的输出结果是______。 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

以下程序段中,能够通过调用函数fun(),使main()函数中的指针变量p指向一个合法的整型单元的是( )。A.main() {int*p; fun(p); … } int fun(int*p) {int s; p=s; }B.main {int*p fun(p); … } iht fun(int**p) {int s; *p=s;}C.main() {int*p; fun(p); } int fun(int**p) {*p=(int*)malloc(2);}D.main() {int*p; fun(p); } int fun(int*p) {p=(int*)malloc(sizeo(int));}

以下程序运行后,输出结果是______。 fun(int**s,int p[2][3]) {**s=p[1][1]; } main() { int a[2][3]={1,3,5,7,9,11},*p; p=(int *)malloc(sizeof(int)); fun(p,a); printf("%d\n",*p); }A.1B.7C.9D.11

以下程序的输出结果是______。 fun(int**p,int a[2][3]) {**p=a[1][2]; } main() { int a[2][3]=}1,3,5,7,9,11},*p; p=(int*)malloc(sizeof(int)); fun(p,a) ; printf("%d\n",*p); }A.9B.7C.1D.11

有以下程序#include stdio.h#include stdlib.hint fun(int t){ int *p; p=(int*)malloc(sizeof(int)); *p=t; return *p;}main(){ int a; a = fun(8); printf("%d\n", a+fun(10));}程序的运行结果是A.0 B.10 C.18 D.出错

有以下程序 include include int fun(int n) {int * 有以下程序 #include <stdio.h> #include <stdlib.h> int fun(int n) {int *p; p=(int*)malloc(sizeof(int)); *p=n; return *p; } { int a; a=fun(10); printf("%d\n",a+fun(10)); } 程序的运行结果是______。A.0B.10C.20D.出错

以下程序的输出结果是( )。 #finclude "stdlib.h" fun(int**p,int a[3][3]) { **p=a[2][2];} main() { int a[3][3]={2,4,6,8,10,12,14,16,18},*p; p=(int*)mallocsizeof(int)); fun(p,a); printf("%d\n",*p); }A.6B.16C.12D.18

以下程序中,能够通过调用函数fun,使main函数中的指针变量p指向一个合法的整型单元的是A.main() { int *p; fun(p); … } int fun(int *p) { ints; p=s;}B.main() { int *p; fun(p); … } int fun(int **p) { int s; *p=s;)C.#include main() { int *p; fun(p); … } int fun(int **p) *p=(int*)malloc(2);}D.#include main() { iht *p; fun(p); … } iht fun(iht *p) { p=(int*)malloc(sizeof(int)); }

以下程序的输出结果是______。 fun(int **s,int p[2][3]) { **s=p[1][1]; } main() { int a[2][3]={1,3,5,7,9,11},*p; p=(int *)malloc(sizeof(int)); fun(p,a); printf("%d\n",*p); }A.1B.7C.9D.11