✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What does the following program print to the screen?
int foo (int q) {
int x = 1;
return (q + x);
}
int main (){
int x = 0;
while (x < 3) {
printf ("%i ", x);
x = x + foo(x);
}
}