Hi All,
The FAQ say to not use:
Because of an unexpected behavior.Code:flushall();
I still don't understand how can I run the following code without this command
Thank youCode:int main(void) { int a; char buf[20]; puts("Put a number:"); scanf("%d",&a); fgets(buf,20,stdin); return 0; }