MCQ · 1 mark · C Programming
GATE CS 2015 CS-2 — Q21
Consider the following function written in the C programming language.
void foo(char *a){
if ( *a && *a != ' '){
foo(a+1);
putchar(*a);
}
}The output of the above function on input "ABCD EFGH" is