Multiple choice

Function memset() is used to realize which of the following?

  1. To initialize the string to all nulls or to any character

  2. To find the next token in a string

  3. To compare two strings

  4. To append a source string to the end of a destination string

  5. To return the length of a string, not counting the null characters at the end

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

memset() is used to initialize the string.