Answer (Choose 1 answer)
What is the output of the following code?
void test(float x){ x += 25;
printf(" Value inside the function: %.2f",x);
x += 25;
}
int main ()
{ float y;y = 100;
printf(" y = %.2f",y);test(y);
printf(" y = %.2f",y);
return(0);
}
A. y=100
Value inside the function: 125
y=125
B. y = 100.00
Value inside the function: 125.00
y = 100.00
C. y=100.00
Value inside the function: 125.00 y=150.00
Exit 48