You want to input a string with spaces?
Dec 24, 2023 · 2 min read · 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...
Join discussion