status = scanf("%d%d", &x, &y);
- scanf reads from standard input
- Reads data from the standard input and stores them according to
given format parameter into given locations, skipping leading
whitespace.
- %d in the format string means read characters from input and
convert to an integer and store at the location specified by the
next argument.
- & is the address operator. &x evaluates to the address of the
int variable x; &x type is "pointer to int"
- this scanf will read two character strings of digits, convert
them to two binary integers and store these integers in variables x
and y
- the return value of scanf is the number of successful input
conversions. In this case status will be 2 if both inputs are
integers.