char* s1 = "This is a string"; char* s2 = " and this is to be concatenated"; char* s3 = new char [strlen(s1) + strlen(s2) + 1]; if (s3 == NULL) {... handle memory failure exception ...} strcpy (s3,...
import java.util.*;public class Example {public static void main(String[] args) { Scanner in = new Scanner(System.in);String one = "hello";String two = "goodbye";String combined =...