If you are a student, and you are learning C, your teacher would have thought you that scanf can't read spaces as it treats spaces as line breakers. But It's not actually like that. See,
#include<stdio.h>
void main(void)
{
char line[32];
printf("Enter a Text with Space :");
scanf("%s",line);
printf("\n\nReceived Text : %s",line);
}