Why scanf must take the address of operator

Because C only has “pass-by-value” parameters, so to pass a ‘variable’ to put a value into, you have to pass its address (or a pointer to the variable).

Leave a Comment