+ 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.

6th Nov 2021, 8:20 PM
Youcef Tahri
Youcef Tahri - avatar
2 Answers
+ 3
Did you declare the variable sen ? It works fine in my code https://code.sololearn.com/cLJQPkdglefw/?ref=app
6th Nov 2021, 8:39 PM
sneeze
sneeze - avatar