Knowee
Questions
Features
Study Tools

which comes under unformatted I/O function?Optionsgets()scanf()sscanf()sprintf()

Question

which comes under unformatted I/O function?

Options:

  • gets()
  • scanf()
  • sscanf()
  • sprintf()
🧐 Not the exact question you are looking for?Go ask a question

Solution

The unformatted I/O function in this list is gets().

Explanation: Unformatted I/O functions do not require any format specifiers. They read or write characters as they are, without any conversion. In this list, gets() is an unformatted I/O function because it reads a string from the standard input (the keyboard) until a newline character is encountered or end of file is reached.

On the other hand, scanf(), sscanf(), and sprintf() are formatted I/O functions. They require format specifiers to convert the input/output. For example, scanf() reads input from the standard input according to a format, sscanf() reads input from a string according to a format, and sprintf() writes formatted output to a string.

This problem has been solved

Similar Questions

Which of the following function used as reading data ?Options :main()print()scanf()printf()

Which function is used to read data from the console?Select one:coutifscanf()main()

scanf() is a predefined function in______header file.*1 pointstdlib. hctype. hstdio. hdstdarg. h

Explain different input and output functions in c with example (scanf,printf,gets,puts).

In C language, which of the following functions can not used to write data to a file?Select one or more:a.putsb.getsc.fprintfd.fputce.fputs

1/2

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.