Multiple choice

Which of the following functions have exactly same working? (a) putch() (b) putchar() (c) puts() (d) fputs() (e) fputchar()

  1. b and c

  2. a, b and e

  3. d and e

  4. a, b, d and e

  5. all of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The working of putch(), putchar() and fputchar() is same, they can print/output one character at a time. e.g. putch(‘A’); putchar(‘B’);
fputchar(‘C’) Output: ABC