About 22,200 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

    3) reads the data from null-terminated character string buffer. 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. scanf, _scanf_l, wscanf, _wscanf_l | Microsoft Learn

    Oct 26, 2022 · Alternately, consider using scanf_s, _scanf_s_l, wscanf_s, _wscanf_s_l or fgets. wscanf is a wide-character version of scanf; the format argument to wscanf is a wide-character string. …

  5. 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.

  6. std::scanf, std::fscanf, std::sscanf - cppreference.com

    Note that some implementations of std::sscanf involve a call to std::strlen, which makes their runtime linear on the length of the entire string. This means that if std::sscanf is called in a loop to repeatedly …

  7. scanf() and fscanf() in C - GeeksforGeeks

    Jan 10, 2025 · Your All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science and programming, school …

  8. scanf - C++ Users

    A format specifier for scanf follows this prototype: % [*] [width] [length]specifier Where the specifier character at the end is the most significant component, since it defines which characters are …

  9. 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 …

  10. How to Use scanf ( ) in C to Read and Store User Input

    Mar 6, 2023 · The scanf() function is a commonly used input function in the C programming language. It allows you to read input from the user or from a file and store that input in variables of different data …