Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials of Economics

Authors: Bradley Schiller, Karen Gebhardt

10th edition

125923570X, 978-1259235702

More Books

Students also viewed these Programming questions

Question

Identify an area of risk (limitation) to an internal control system

Answered: 1 week ago