I am new to C, and am having a lot of trouble with the scanf function.
I am using it to read a single character like this:
scanf("%c",&character);
this works fine in the main function, but in any other function, it always skips this line. it executes the line above and after it, without prompting the user for input. Can anyone tell me what might be happening here?
thx.