Code:#include <stdio.h> #include <string.h> #define MAX 4 int main(){ char str[2][MAX] ={"mom", "dog"}; char *pch; char *pch1; *pch = str[0][1]; *pch1 = pch+MAX; printf("%c, %p", pch1, pch1); return 0; }
Hi, I want to be able to compare if the middle letters are the same. This is just a snippet. I wanna see if I can add the MAX (4) including the '/O' character to the pointer to get into the next string.
You know what I mean?
:P