![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
The scanf
function is an example of a function that needs to return
multiple values. Accordingly, the address-of operator, &
, appears
frequently in scanf
calls. Those address-of operators enable the
scanf
function to gain access, via pointers, to the memory locations
that are to receive values. Thus, scanf
uses pointers to get more
than one value out of a single scanf
call.