About 178,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 …

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

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

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

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

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

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

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

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

  10. Scanf () ⌨️ - Learn C

    Scanf () ⌨️ # What if we wanted to get input from the user? You may have noticed you could type in the output window — This is how we can send text to our program. To request input …

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

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

    Sep 10, 2023 · 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 …

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

    Learn how the scanf () function in C works for user input. Explore its syntax, format specifiers, common mistakes, and best practices to efficiently read input from the user in C programming.

  14. Scanf () Function in C Programming - TecAdmin

    Apr 26, 2025 · The scanf () function is an indispensable part of the C programming language. It is used to collect input from the user in various formats, making it an essential tool for a wide …

  15. C Language: scanf function (Formatted Read) - TechOnTheNet

    In the C Programming Language, the scanf function reads a formatted string from the stdin stream.

  16. scanf () in C Language (Syntax, Examples, How to Use?)

    Whether you're dealing with numbers, characters, or strings, scanf in C language provides a simple and efficient way to collect input. Let’s learn how to use scanf, its syntax, examples, …

  17. All forms of formatted scanf () in C - GeeksforGeeks

    Jul 23, 2025 · The scanf () function reads characters from the standard input (keyboard), interprets them according to the conversion specification in format (const char*format), and …

  18. C User Input - W3Schools

    Use the scanf() function to get a single word as input, and use fgets() for multiple words.

  19. The scanf Function in C Programming | Algor Cards

    Explore the intricacies of the scanf function in C for secure user input handling, including string and character reading techniques.

  20. Mastering Scanf () for Robust User Input Handling in C

    Behind the scenes, scanf () utilizes va_start, va_arg, and va_end macros to traverse the va_list, reading format specifiers and storing matched input data into each subsequent argument‘s …