I\'m a complete beginner in C programming and I have a question. I\'ll bring a simple code as an example:
#include int main( void ) { int x
It's the "\n" in your call to scanf. Remove that and scanf will return after scanning the integer value you requested.
scanf
Note: This has nothing to do with the fact that the scanf call is preceded by a printf.
printf