About 7,990 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.

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

    Mar 6, 2023 · The scanf() function in C is a powerful tool for reading input from the user or from a file and storing it in variables. By specifying conversion specifiers in the format string, you can read input …

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

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

    Jul 4, 2022 · 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) …

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

  7. Scanf () Function in C Programming - TecAdmin

    Apr 26, 2025 · Scanf () can handle multiple inputs at once, a feature that’s extremely useful in real-world programming. To do this, simply include multiple format specifiers and variable addresses. Here’s an …

  8. scanf () in C: Syntax, Examples, and Usage Guide

    In C programming, the scanf function is one of the most widely used input functions. It allows users to accept input from the standard input device, typically the keyboard, and store it in program variables. …

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

  10. How to Use scanf () in C with Examples - Markaicode

    Nov 2, 2024 · Learn how to use scanf () in C programming with practical examples. Master input handling for integers, strings, and more in this step-by-step guide.