That line of code is equivalent to:Does it make sense now? It copies the string s2 to the concat buffer at the strlen(s1)th position of that buffer, which achieves the concatination you are wanting.Code:strcpy( &concat[strlen(s1)], s2 );
That line of code is equivalent to:Does it make sense now? It copies the string s2 to the concat buffer at the strlen(s1)th position of that buffer, which achieves the concatination you are wanting.Code:strcpy( &concat[strlen(s1)], s2 );