You changed the function definition, but failed to change its prototype to match the new function signature.
OMG! DaveH, Lazerlight your gods among men! Sorry for being annoying and thanks for your help!
Although saying that, ill be back soon with brand new questions lol.
hello to everyone,
you must change the line
withCode:scanf ("%c", ans);
Code:scanf ("%c", &ans);