how to read input in single line in c code example
Example 1: how to read in sentences in c
scanf(“%[^\n]s”, string);
Example 2: how to read in sentences in c
scanf("%[^'\n']s",str)
scanf(“%[^\n]s”, string);
scanf("%[^'\n']s",str)