Whilst I can succesfully write to elements of an array using pointers, I cannot read them back.
*ch_ptr='x'; //works ch=*ch_ptr; //does not work (ch is always 0)
I initially the variables, array & pointer as follows
char ch, ch_array, *ch_ptr=&ch_array; //alternatively char ch, ch_array, *ch_ptr=ch_array;
In both cases the pointer initializes to the starting address of the array OK.
Any ideas anyone??