/* copy a string, using pointer increments */ #include /* declare global variables here -- generally to be avoided */ char* hello = "Hello World\n"; /* char hello[] = ... would prevent the hello++, and we could rely on hello as a constant address */ int main () { /* declare local variables here */ char again[30]; char* copy=again; char letter; while (*copy++=*hello++); /* note empty loop body*/ again[5] ='-'; /* modify the copy */ printf (again); return 0; /* 0 tells operating system "Normal termination" */ } /* end main */