About 23,100 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

    Matches a character or a sequence of characters. If a width specifier is used, matches exactly width characters (the argument must be a pointer to an array with sufficient room).

  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 · 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 …

  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

    Reads data from a variety of sources, interprets it according to format and stores the results into given locations. 1) Reads the data from stdin. 2) Reads the data from file stream stream. 3) Reads the data …

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

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

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

    Jan 10, 2025 · In C language, scanf () function is used to read formatted input from stdin. It returns the whole number of characters written in it otherwise, returns a negative value.

  10. scanf_s, _scanf_s_l, wscanf_s, _wscanf_s_l | Microsoft Learn

    Oct 26, 2022 · The scanf_s function reads data from the standard input stream, stdin, and writes it into argument. Each argument must be a pointer to a variable type that corresponds to the type specifier …