Vidyalelo
C Programming · Q27

Arrays and Strings

Programming · C Programming · question 27

Q27

What is the purpose of the strncpy function in C?

A.
Concatenate two strings
B.
Copy a portion of a string
Answer
C.
Compare two strings
D.
Initialize a string

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board