Hi, what's wrong with this code? I just followed the requirements of using strcat.
Code:#include<stdio.h> #include<string.h> int main() { char arr2[]="I love mom"; char arr3[]="45"; strcat(arr2,arr3); printf("%s", arr2); return 0; }
Hi, what's wrong with this code? I just followed the requirements of using strcat.
Code:#include<stdio.h> #include<string.h> int main() { char arr2[]="I love mom"; char arr3[]="45"; strcat(arr2,arr3); printf("%s", arr2); return 0; }
Last edited by Romyo2; 08-13-2015 at 07:53 AM.