#include <stdio.h>
enum { max_size_string = 127 };
static char string[max_size_string + 1] = " ";
int main( int argc, char ** argv ) {
printf("Type a string");
fgets(string, max_size_string, stdin);
printf("The string is %s",string);
return 0;
}
In console screen, Type a string is appearing after typing something, and after that, other printf is printing the output. I am unable to understand the order of execution.