Home / C Programming / Library Functions :: Discussion

Discussion :: Library Functions

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

  2. A.
    True
    B.
    False

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    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.


Be The First To Comment