I am beginner in C programming. I don't understand one thing. Why if I put down that
printf("write down any whole number:");
scanf("%d",&(any int variable));
When I use gdb(debugger) it shows me that CPU executes printf(), but doesn't write anything, then goes to the scanf() instruction and after that writes String and takes it to analyze by scanf function.
I am using GCC and Linux Debian
Question: Why printf is executed only after scanf?
Thank you.
 
    