C Programming Code Examples C > Pointers Code Examples using pointer arithmetic to access elements using pointer arithmetic to access elements #include <stdio.h> #define ISIZE 10 int main( ) { char string10[ISIZE]; char *pc; int counter; pc=string10; for(counter = 0; counter < ISIZE; counter++) { *pc=getchar( ); pc++; } pc=string10 + (ISIZE - 1); for(counter = 0; counter < ISIZE; counter++) { putchar(*pc); pc--; } }