#include<stdio.h> int main(int argc, const char *argv[]) { char str123[]="ABCD1234efgh"; char *p1 = str123; char *p2 = str123 ; while(*++p2); p2 -= 1; #if 0 while(*p2++) ; p2 -= 2 ; #endif while(p1 < p2) { char c = *p1; *p1 = *p2; *p2 = c; p1 ++; p2 --; } puts(str123); return 0; }