Q15
MCQ1 mark, −0.33ProgrammingMediumConsider the following function written in the C programming langauge :
void foo(char *a)
{
if (*a && *a != ' ')
{
foo(a+1);
putchar(*a);
}
}
The output of the above function on input "" is
Sign in to save attempts.
Keys: A–D or 1–4 choose, Enter checks, ← → move between questions.
Solutions and discussion are hidden while you attempt this question. They open once you check or show the answer.