About 184,000 results
Open links in new tab
  1. scanf in C - GeeksforGeeks

    Oct 13, 2025 · In C, scanf () is a standard input function used to read formatted data from the standard input stream (stdin), which is usually the keyboard. It scans the input according to the specified …

  2. scanf, fscanf, sscanf, scanf_s, fscanf_s, sscanf_s - Reference

    Jul 4, 2022 · Reaching the end of the string is equivalent to reaching the end-of-file condition for fscanf.

  3. scanf - Wikipedia

    scanf, short for scan formatted, is a C standard library function that reads and parses text from standard input. The function accepts a format string parameter that specifies the layout of input text.

  4. C stdio scanf () Function - W3Schools

    The scanf() function reads user input and writes it into memory locations specified by the arguments. The scanf() function is defined in the <stdio.h> header file.

  5. scanf - C++ Users

    These arguments are expected to be pointers: to store the result of a scanf operation on a regular variable, its name should be preceded by the reference operator (&) (see example).

  6. scanf (3) - Linux manual page - man7.org

    The scanf () family of functions scans formatted input like sscanf (3), but read from a FILE. It is very difficult to use these functions correctly, and it is preferable to read entire lines with fgets (3) or …

  7. scanf, _scanf_l, wscanf, _wscanf_l | Microsoft Learn

    Oct 26, 2022 · The scanf function reads data from the standard input stream stdin and writes the data into the location given by argument. Each argument must be a pointer to a variable of a type that …

  8. C Library - scanf () function

    The scanf function returns an integer value which indicates the number of input items successfully matched and assigned. If the input does not match the format specifiers, or if the end of the input …

  9. C scanf Tutorial: Master Input Handling with Practical Examples

    Apr 6, 2025 · The scanf function is your primary tool for reading formatted input from standard input. This tutorial dives into the essentials of scanf, explains its format specifiers, and provides hands-on …

  10. How do I properly use scanf and what are its limits?

    Aug 3, 2025 · scanf() looks superfically similar to printf() but is very different in its detail. It does not output anything: every character in the format string has a specific purpose for controlling the …