someone please tell me ?
1 Replies
Read string with spaces by using the "%[^\n]" format specifier. The format specifier "%[^\n]" tells the compiler that read the characters until "\n" is not found. See the output, now the program can read complete strings with white space.