Which function is used to read a complete string at a time?
Answers
Answered by
2
A set of simple string manipulation functions are implemented in <string.h>, or on some systems in <strings.h>. The string library (string.h or strings.h) has some useful functions for working with strings, like strcpy, strcat, strcmp, strlen, strcoll, etc.
Answered by
2
Gets() function can be used for reading the complete string at a time.
It can read up to 100 characters at a time.
It can also be used to read the whole line at a time.
For example: Gets (hi this is brainly).
Then gets function will be able to read the whole line, i.e., hi, this is brainly.
Similar questions