Q:

WHAT IS THE DIFFERENCE BETWEEN STRCPY() & STRNCPY() FUNCTIONS IN C?

belongs to collection: C INTERVIEW QUESTIONS AND ANSWERS

0

WHAT IS THE DIFFERENCE BETWEEN STRCPY() & STRNCPY() FUNCTIONS IN C?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

strcpy( ) function copies whole content of one string into another string. Whereas, strncpy( ) function copies portion of contents of one string into another string.

If destination string length is less than source string, entire/specified source string value won’t be copied into destination string in both cases.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C INTERVIEW QUESTIONS AND ANSWERS

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
CAN ARRAY SUBSCRIPTS HAVE NEGATIVE VALUE IN C?... >>
<< IS THERE ANY INBUILT LIBRARY FUNCTION IN C TO REMO...