You want to input a string with spaces?
When you want to read a string that may contain spaces from the console in C, using scanf alone may not be sufficient because scanf stops reading when it encounters a space character. Here are a few alternative approaches to read a string with spaces...
Dec 24, 20232 min read42