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

1
ABCD EFGH
2
ABCD
3
HGFE DCBA
4
DCBA

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation