Examveda
Examveda

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


This Question Belongs to C Program >> Arrays And Strings

Join The Discussion

Related Questions on Arrays and Strings