Qmark: 1
Total Marks: 50
Vol: 8
Font: Microsoft Sans Serif
Size: 10
Time Left:46:02
Multiple Choices
(Choose 1 answer)
What is the output when the sample code below is executed?
void foo(int *p, int q) {
*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
Ε. 4 9