Reading user input is the process of prompting the user for input, and then receiving this by the software so that actions can be done based on what was typed. This applies more to C programs running on Linux and other terminal-capable architectures, rather than embedded microcontrollers.
scanf() is one of the most common ways of getting user input from a terminal in Linux.
The simplest example is that which gets an integer displayed by the user and stores it in a variable called input .
scanf ("%d", &input);
Posted: June 18th, 2013 at 2:19 pm
Last Updated on: August 15th, 2017 at 10:51 am