Hai guys,
I have a problem in the program,
it works very well in first time , when i give the input 'y'. But it come out of the loop when i give the same char 'y' in the second time. what is the error in this program. i am working in linux OS. Help me.Code:int main() { char option='y'; while( option == 'y') { /* do somthing */ printf("Want to continue [y|n]"); scanf("%c",&option); } }