Need a solution to get input string start with spaces?
I know a method to include space in input
scanf("%[^\n]s", s);
But its working only for space between words. I need a solution for string starts with spaces. And I also need the starting spaces in the variable