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:
void getcharacters(char *cad)
{
int l;
int *i;
l=strlen(cad);
for (i=&cad[0];i<&cad[l];i++){
printf("%c\n",*cad);
}
}
any help? Thanks
ibe declared aschar *i?*iinstead of*cad?