Question 14Asked in DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 3

Which inbuilt function in C is used to read string from system console?

  1. APuts()
  2. BCgets()
  3. CGetche()
  4. DGetchar()
Show answerHide answer

Correct answer: (B) Cgets()

Explanation

cgets() (from conio.h) reads a string from the console. puts() writes a string, and getche()/getchar() read single characters.

From DSSSB TGT Computer Science PYQ (Technical), 1 Aug 2021, Shift 3

This is question 14 of DSSSB TGT Computer Science PYQ (Technical), 1 Aug 2021, Shift 3. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.