What output does the following program produce?
# include <stdio.h>
void foo (int *, int);
main ()
{
int a = 2, b =3;
printf ("a=%d, b=%d, sum=%d\n", a, b, a+b);
foo (&a, b);
printf ("a=%d b=%d sum=%d\n", a, b, a+b);
}
void foo ( int *a, int b)
{
*a = 3;
b++;
}
|