I've just started learning C and am having some trouble.
Lets say you have these two strings.
char a [5] = "abcd";
char b [3] = "zz";
I want to use strcpy() and strcat() to change b into "bd".
Something like,
strcpy(b, a[1]);
strcat(b, a[3]);
Clearly, this does not work.
a[1] is not a string. I have no idea how to get a "b" string from the variable a.
Any help?