Question: create an ar diagram #include void bar ( int * a , int * b ) ; void quux ( int * p , int

create an ar diagram
#include
void bar(int *a, int *b);
void quux(int *p, int *q);
int main(void)
{
int x =500, y =600;
quux(&x, &y);
printf("x is %d, y is %d.
", x, y);
return 0;
}
void bar(int *a, int *b)
{
*a +=3;
*b +=4;
/* point one */
printf("*a is %d,*b is %d.
",*a,*b);
}
void quux(int *p, int *q)
{
int n;
n =*p;
bar(&n, q);
printf("*p is %d,*q is %d.
",*p,*q);
}

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!