Home Segments Index Top Previous Next

505: Mainline

The second and subsequent arguments in a call to the scanf function usually are prefixed by the address-of operator, &, because scanf's parameters are pointer parameters. Note, however, that input_buffer is not prefixed by the address-of operator in the following call to the scanf function:

scanf ("%s", input_buffer)  

There is no address-of operator, because input_buffer is the name of a character array, and the value returned by the name of a character array is an address already.