Hello,
How can I do part 3 in c language ,
Part 2: Combine arrays
Part 3: String / Character array
Here is the code that I came up with :
#include int main()#define MAX 10{char array_1[MAX];char array_2[MAX];printf("enter char : enter \n to stop");printf("enter array_1 :\n");for (int i = 0; i != '\n'; i++);{scanf_s("%c", &array_1);}printf("enter array_2 :\n");for (int i = 0; i != '\n'; i++);{scanf_s("%c", &array_2);}printf("array_1 and array_2\n");for (int i = 0; i < max;="">{printf("%c", array_1[i]);}return 0;}
printf("enter array_1 :\n");for (int i = 0; i != '\n'; i++);{scanf_s("%c", &array_1);}
printf("enter array_2 :\n");for (int i = 0; i != '\n'; i++);{scanf_s("%c", &array_2);}
printf("array_1 and array_2\n");for (int i = 0; i < max;="">{printf("%c", array_1[i]);}
return 0;}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here