有以下程序:#include #define N 3void fun(int x[][N], int *r1, int *r2 ){ int i,j;*r1=*r2=0;for(i=0; i
查看答案
以下程序的运行结果是________________。#includevoid sub(int x,int y,int *z){*z=y-x;}void main(){int a,b,c;sub(10,5,&a);sub(17,a,&b);sub(a,b,&c);printf("%4d,%4d,%4d\n",a,b,c);}
以下程序的运行结果是_____________.#includeint sub(int *s){static int t=0;t=*s+t;return t;}void main(){int i,k;for(i=0;i<4;i++){k=sub(&i);printf("%d,",k);}printf("\n");}
以下程序的运行结果是____________.#include#includeint *p;void pp(int a,int *b){int c=4;*p=*b+c;a=*p-c;printf("%d %d %d\n",a,*b,*p);}void main(){int a=1,b=2,c=3;p=&b;pp(a+c,&b);printf("%d %d %d\n",a,b,*p);}
下面程序的运行结果是_____________。#includevoid fun(char *p1,char *p2,int n){int i;for(i=0;i