I am new in programming and currently learning on C. Could you please assist me on solving below's case?
An example of this will be if a user is entering "cbamike", I would like to separate it into two strings: cba and mike.
I tried below's code but it doesnt work:
#include <stdio.h>;
int main (int argc, string argv[])
{
    char* input[50] = argv[1];
    char* first[10];
    char* second[10];
    sprintf(first, "%c %c %c", input[0], input[1], input[2]);
    sprintf(second, "%c %c %c %c", input[3], input[4], input[5], inpput[6]);
    printf("%s\n", input);
    printf("%s\n", first);
    printf("%s\n", second);
}
 
     
     
    