229 views
1 votes
1 votes
Consider putchar(getchar());

                Putchar(getchar());

the input is a and b then

1.error message

2.this cannot be the input

3.ab

4.a   b

1 Answer

2 votes
2 votes
getcgetchar() function is used to get/read a character from keyboard input. In a C program, we can use getchar   function as getchar(char).

putchar() function is used to write a character on standard output/screen. In a C program, we can use putchar funtionas putchar(char).

anwswer of your question is OPTION 3.

No related questions found