Question
What will be the output of the program If characters 'a', 'b' and 'c' enter are supplied as input? #includeint main(){ void fun(); fun(); printf();
What will be the output of the program If characters 'a', 'b' and 'c' enter are supplied as input?
#includeint main(){ void fun(); fun(); printf(""); return 0;}void fun(){ char c; if((c = getchar())!= '') fun(); printf("%c", c);}abc abc
bca
Infinite loop
cba
Step by Step Solution
3.55 Rating (159 Votes )
There are 3 Steps involved in it
Step: 1
The detailed answer for the above question is provided below Answer Option D E...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Essentials of Economics
Authors: Bradley Schiller, Karen Gebhardt
10th edition
125923570X, 978-1259235702
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App