int the example below that i took from deitels book it codes the scanf like below could you explain how we eliminate the spaces and newlines in despite of we dont specify anything in the scanf() function.
thanks in advance.
printf("Enter a line of text:\n");
scanf(" "); /* Eliminate spaces and newlines at the start of the input stream */