(Choose 1 answer)
void foo(int *p, int q) {
What is the output when the sample code below is executed?
*p = *p**p;
q = q*q;
} int main() {
int p=3,q=4;
foo(&p, q);
printf("%d %d",p,q);
printf("");
return 0;
}
A. 3 4
B. 3 16
C. 9 4
D. 9 16
E. 49
Q: 43