How to read string with spaces, with scanf() in C?Sri Vigneshwar DJ·FollowJul 8, 2021--ShareWithout using gets() and fgets(),Use,char s[100];scanf(“%[^/n]”,s);prinf("%s",s);