C Programming - Library Functions - Discussion

1. 

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

[A]. True
[B]. False

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.


Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.