I am trying to read user input, including spaces.
ex:
//this one will include spaces
printf("Enter your name: ");
fgets(name,sizeof(name),stdin);
printf("Enter your age: ")
scanf("%d", &age);
The problem is, it doesnt take any input from fgets and proceeds directly to the next input line.
Why is this happening?
Thanks.