I was trying to take input a sentence and I used the scanf("%![^\n]%*c") But errror occured. And I had to use scanf("\n") on the previous line. This is a problem in C
10/20/2019 11:15:46 AM
This is because the '\n' in the previous line was not scanned, so it was scanned by the next scanf(which u used) which resulted in stopping of further input due to occurence of '\n'
Use gets() to get input as sentence
GET THE FREE APP
Learn Playing. Play Learning
Send us a message