scanf() pointers vs. variables

I know in the <cstdio> library that passing variables through scanf("string", pointers) will cause the program to crash. Besides being a matter of form, is there any advantage to passing a pointer through scan-function when the value will be returned immediately after input from the keyboard?
Why are you using scanf? And not something like getline() etc?
Topic archived. No new replies allowed.