Basically, we use scanf() to take input of any type.
Like:
char str[20];
scanf("%s",&str);
But in this, it can not take the input with white space like "r4r website" but str only strore "r4r"
Solution:
char str[20];
gets(str);
-We take string input using gets() function
Read More →