Question: #include void g ( int * x , int * y ) { * x = * y - 1 ; * y = *

#include
void g(int *x,int *y){
*x=*y-1;
*y=*y-2;
printf("*x=%d,*y=%d
",*x,*y);
}
void f(int *z,int *w){
int n=13;
g(w,&n);
printf("*z=%d,*w=%d,n=%d
",*z,*w,n);
}
int main()
{
int i=21;
int j=5;
int n=137;
f(&i,&j);
printf("print 1:i=%d,j=%d,n=%d
",i,j,n);
g(&n,&n);
printf("print 2:i=%d,j=%d,n=%d
",i,j,n);
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!