Which is capable to accept a string with white space characters?

  • AGetch()
  • BGets()
  • CGetche()
  • DNone of these
Show answerHide answer

Correct answer B

Gets() can accept a full string including white space characters until a newline is encountered. In contrast, getch() and getche() only accept a single character input.