Top

Discussion

It is necessary that for the string functions to work safely the strings must be terminated with '\0'.

  • A.True
  • B.False

Answer: A

C string is a character sequence stored as a one-dimensional character array and terminated with a null character('\0', called NULL in ASCII).
The length of a C string is found by searching for the (first) NULL byte.

No comment is present. Be the first to comment.
Loading…

Post your comment