char* s = (char*) malloc(10 * sizeof(char)); *s='a'; s++; //move to next/adjacent memory *s='b'; s--; printf(s); //output: ab