About 180,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, fscanf, sscanf, scanf_s, fscanf_s, sscanf_s - Reference

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

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

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

  6. scanf - C++ Users

    Reads data from stdin and stores them according to the parameter format into the locations pointed by the additional arguments. The additional arguments should point to already …

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

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

  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 …

  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. scanf () Function - C stdio.h - Syntax, Examples - Tutorial Kart

    The scanf () function in C stdio.h reads formatted data from the standard input (stdin) and stores the values in the provided locations based on the given format string.

  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 () ⌨️ - 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 …

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

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

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

  18. C User Input - W3Schools

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

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

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

    Understand what scanf () is in C Language, its syntax, and how to use it effectively with examples. Learn to read user input and improve your C programming.

  21. scanf在c语言中的作用(通俗易懂,适合新手小白) - 菜还爱玩

    4 days ago · 程序是人机交互的媒介,有输出必然也有输入,第三章我们讲解了如何将数据输出到显示器上,本章我们开始讲解如何从键盘输入数据。在C语言中,有多个函数可以从键盘获得 …