if so then why i am getting this problem when i took
int ch
and now as option i ask for 0/1 and very nicely scanf is obliging now.
if the problem is of input buffer then ch as int should also get corrupted like when i took ch as char .
thanks for help ..