so for the above how shall i program so that the value of "b" is taken by user. and wish to hear why fflush(stdin) is not flushing the keyboard bufferCode:main() { char a,b; printf("Enter a value\n"); scanf("%c", &a); // the value entered is X and so in buffer // its saves as X\n fflush(stdin); // this is not flushing keyboard buffer scanf("%c",&b); // b takes the value \n }