#include<stdio.h>
#define NL '\n'
main()
{
void f(void);
printf("enter the word\n");
f();
}
void f(void)
{
char c;
if((c=getchar())!=NL)
{
f();
printf("%c",c);
}
return;
}
a) sanfoundry
b) infinite loop
c) yrdnuofnas
d) fnasyrdnuo
What will be the output of the following C code if the input given to the code shown below is “sanfoundry”?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What will be the output of the following C code if the input given to the code shown below is “sanfoundry”?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!