About 5,900 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. 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. The format parameter is a string that …

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

    Mar 6, 2023 · In this article, we'll take a closer look at the scanf() function and how to use it effectively in C programming. Here are some things that you will learn: The basic syntax of the scanf() function is …

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

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

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

    Apr 6, 2025 · This tutorial dives into the essentials of scanf, explains its format specifiers, and provides hands-on examples. While scanf is powerful, we'll also discuss safer alternatives for production code …

  7. C User Input - W3Schools

    The scanf() function takes two arguments: the format specifier of the variable (%d in the example above) and the reference operator (&myNum), which stores the memory address of the variable.

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

  10. C Input/Output: printf () and scanf () - Programiz

    In this tutorial, you will learn to use scanf () function to take input from the user, and printf () function to display output to the user with the help of examples.

  11. scanf (3): input format conversion - Linux man page

    The scanf () family of functions scans input according to format as described below. This format may contain conversion specifications; the results from such conversions, if any, are stored in the …