Why do you require ampersand (&) in the scanf function. What will the output or type of error (compile or runtime) be in the following C code?
scanf
You don't always need to use an & with scanf. What you need to do is to pass pointers. If you're new to C, you should spend some time reading the comp.lang.c FAQ:
&
http://c-faq.com/
Specifically: