i find thid error with the gcc only.
i understand that there must be some value in the buffer that is why the program does not stop to scanf the value.
1. can anyone tell how do we check the value in the buffer.
2. how about clearing the buffer before the scanf statement. if u think this is a good idea then, please can anyone let me know how to clear the buffer.