scanf
Control parameter used in programming languages / From Wikipedia, the free encyclopedia
Dear Wikiwand AI, let's keep it short by simply answering these key questions:
Can you list the top facts and stats about Scanf format string?
Summarize this article for a 10 year old
SHOW ALL QUESTIONS
scanf, short for scan formatted, is a C standard library function that reads and parses text from standard input.
This article needs additional citations for verification. (May 2010) |
The function accepts a format string parameter that specifies the layout of input text. The function parses input text and loads values into variables based on data type.
Similar functions, with other names, predate C, such as readf
in ALGOL 68.
Input format strings are complementary to output format strings (see printf), which provide formatted output (templating).