Question: Exercise 5 Using both scanf() and getchar() functions, write a program that read two characters from user and print them on the screen in the

 Exercise 5 Using both scanf() and getchar() functions, write a program

Exercise 5 Using both scanf() and getchar() functions, write a program that read two characters from user and print them on the screen in the following manner Enter two characters (with a space), then press enter: a b Enter two characters (without any space), then press enter: xy The characters are: a --> b X --> y (Hint: If you use getchar() function, you may need to use the fflush(stdin) function too)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!