What is the purpose of the strncpy function in C?
A. Concatenate two strings
B. Copy a portion of a string
C. Compare two strings
D. Initialize a string
Answer: Option B
Related Questions on Arrays and Strings
A. Concatenate two strings
B. Copy a portion of a string
C. Compare two strings
D. Initialize a string
Answer: Option B
Join The Discussion