Computer Sciences > Gate 2015 Set-2 > C Code
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);
}
}
{
if (*a && *a != ` `)
{
foo(a+1);
putchar(*a);
}
}
The output of the above function on input “ABCD EFGH” is
Correct : C Code
Similar Questions
Consider the following program in C language:
#include <stdio.h>
main()
{
int i;
int *pi = &i;
scanf("%d",...
Consider the following two C code segments. Y and X are one and two dimensional arrays of size n and n × n respectively, where 2 ≤ n ≤ 10. Assume that in both c...
Consider the following C program segment.
#include<stdio.h>
int main( )
{
char s1[7] = "1234", *p;
p = s1 + 2;
...
Total Unique Visitors
Loading......