GATE Computer Science (CS) 2015 Shift 2 Solved Paper
© examsiri.com
Question : 21 of 65
Marks:
+1,
-0
Consider the following function written in the C programming language.
The output of the above function on input “ABCD EFGH” is
void foo(char *a){
if (*a && *a != ‘ ‘){
foo(a+1);
putchar(*a);
}
}The output of the above function on input “ABCD EFGH” is
Go to Question: