The function ________ is used to read formatted input from the standard input.

  • print
  • scanf
  • printf
  • cout
The "scanf" function is used in C and C++ to read formatted input from the standard input (usually the keyboard). It allows you to input and store values in variables while specifying the format in which data should be entered. Options like "print," "printf," and "cout" are used for output, not input.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *