Question 23
Answer saved
Marked out of 1.00
What is the ouput when the sample code below is executed?
void foo(int x, int *y){
x=x*x;
*y=*y**y;
}
int main(){
int x=-5,y=-2;
foo(x,&y);
printf("%d %d",x,y);
return 0;
}
a. -5 4
Ob. 25 4
Oc. -5-2
Od. -5-4
Clear my choice