+ 2
scanf("%[^\n]%*c",sen);
I have been trying to use this statement to input a sentence but I couldn't get how it works and it kept giving me an error can someone give an example about how it works.
2 Answers
+ 3
Did you declare the variable sen ?
It works fine in my code
https://code.sololearn.com/cLJQPkdglefw/?ref=app