-
When to use the &?
I have noticed from pointers to scanf() the & moves it way in and out. I have done some reading on it and I still think I abuse ether the true purpose of it or simply dont use it when I should. I have been wondering if anyone has a great link (one that is not to the lession plans on the website, I have read through them all more then a few times) or can explain it to me. Thanks for your time.
-
The answer: http://c-faq.com/stdio/scanf1a.html
Three out of four experts agree* that learning to use scanf correctly can take as long as learning the language itself. Therefore it is wise to avoid calling it if you can.
http://www.daniweb.com/tutorials/tutorial45806.html
*72% of the statistics in this post are pulled out of the blue.
-
Agreed. fgets + sscanf for the win...