#include <stdio.h>
int main() {
char arr[] = "abcd";
char *p = arr;
printf("%c\t", ++*p
); // Increment the value pointed to by p, then print it. printf("%c\t", *p
++); // Print the value pointed to by p, then increment the pointer. printf("%c\t", (*p
)++); // Print the value pointed to by p, then increment the value. printf("%c\n", *p
); // Print the current value pointed to by p.
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGNoYXIgYXJyW10gPSAiYWJjZCI7CiAgICBjaGFyICpwID0gYXJyOwoKICAgIHByaW50ZigiJWNcdCIsICsrKnApOyAgIC8vIEluY3JlbWVudCB0aGUgdmFsdWUgcG9pbnRlZCB0byBieSBwLCB0aGVuIHByaW50IGl0LgogICAgcHJpbnRmKCIlY1x0IiwgKnArKyk7ICAgLy8gUHJpbnQgdGhlIHZhbHVlIHBvaW50ZWQgdG8gYnkgcCwgdGhlbiBpbmNyZW1lbnQgdGhlIHBvaW50ZXIuCiAgICBwcmludGYoIiVjXHQiLCAoKnApKyspOyAvLyBQcmludCB0aGUgdmFsdWUgcG9pbnRlZCB0byBieSBwLCB0aGVuIGluY3JlbWVudCB0aGUgdmFsdWUuCiAgICBwcmludGYoIiVjXG4iLCAqcCk7ICAgICAvLyBQcmludCB0aGUgY3VycmVudCB2YWx1ZSBwb2ludGVkIHRvIGJ5IHAuCgogICAgcmV0dXJuIDA7Cn0K