Q:

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

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)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now