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.
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