Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions

Question

solve the following 15) cot[sin-1(-1)]

Answered: 1 week ago