You did not fix your scanf() problem. As I said, scanf requires an the address of a variable. Line 34 of last post.
Type: Posts; User: Tclausex
You did not fix your scanf() problem. As I said, scanf requires an the address of a variable. Line 34 of last post.
Look at line 7.
edit:
You are not getting the error from the return value, however, you should probably define your function so that it returns 'int' instead of 'long'. If you insist on long,...
scanf() requires a memory location (address) to store the value of what it reads/converts. When you use the name of a variable that is an integer or float type, the name is evaluated for the value...