I want to get the elements of an array of characters, but no success at all, the problem is that I only get the first and last element and nothing more, my code is:
The size of an int can be as big as 4 x the size of a char, so when you do i++ you are actually skipping 3 chars.
int
char
i++
Also, you print out *cad instead of *i.
*cad
*i
To fix change i to char* and print *i instead of *cad
i
char*