1.

Which function will you choose to join two words?(a) strcpy()(b) strcat()(c) strncon()(d) memcon()The question was posed to me in an interview for internship.My enquiry is from String Operations topic in section String Operations in C of C

Answer»

The CORRECT CHOICE is (b) strcat()

Explanation: The strcat() function is used for concatenating two STRINGS, APPENDS a copy of the string.

char *strcat(char *S1,const char *s2);



Discussion

No Comment Found

Related InterviewSolutions