Answer (Choose 1 answer)
What is the output when the sample code below is executed?
#include<stdio.h>
int foo(int x)
{
}
x = 2+x;return(x);
int main()
{
int x = 0;
while(x<5)
{
}
printf("%d ", foo(x));
x++;
return 0;
}
A. 2 4 6 8 10
B. 3 5 7 9 11
C. 2 5 7 9 11
D.23456
E. 2 5 7 9 10
Exit (47)