Which Function Is Used For Accepting A String As Input?

Which Function Is Used For Accepting A String As Input? You can use the scanf() function to read a string. Which of the following functions is used to accept string? We can take string input in C using scanf(“%s”, str). But, it accepts string only until it finds first space. How do you take string