1.

The ______ function appends not more than n characters.(a) strcat()(b) strcon()(c) strncat()(d) memcat()I have been asked this question in semester exam.Query is from String Operations topic in division String Operations in C of C

Answer»

The CORRECT choice is (C) strncat()

The EXPLANATION is: The strncat() function appends not more than n characters from the ARRAY(s2) to the END of the string(s1).char *strncat(char *s1, const char *s2,size_t n);



Discussion

No Comment Found

Related InterviewSolutions