#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+CgppbnQgbWFpbigpIHsKICAgIGNoYXIgYXJyW10gPSAiYWJjZCI7CiAgICBjaGFyICpwID0gYXJyOwoKICAgIHByaW50ZigiJWNcdCIsICsrKnApOyAgIC8vIEluY3JlbWVudCB0aGUgdmFsdWUgcG9pbnRlZCB0byBieSBwLCB0aGVuIHByaW50IGl0LgogICAgcHJpbnRmKCIlY1x0IiwgKnArKyk7ICAgLy8gUHJpbnQgdGhlIHZhbHVlIHBvaW50ZWQgdG8gYnkgcCwgdGhlbiBpbmNyZW1lbnQgdGhlIHBvaW50ZXIuCiAgICBwcmludGYoIiVjXHQiLCAqcCsrKTsgLy8gUHJpbnQgdGhlIHZhbHVlIHBvaW50ZWQgdG8gYnkgcCwgdGhlbiBpbmNyZW1lbnQgdGhlIHZhbHVlLgogICAgcHJpbnRmKCIlY1xuIiwgKnArKyk7ICAgICAvLyBQcmludCB0aGUgY3VycmVudCB2YWx1ZSBwb2ludGVkIHRvIGJ5IHAuCgogICAgcmV0dXJuIDA7Cn0K
I2luY2x1ZGUgJmx0O3N0ZGlvLmgmZ3Q7CgppbnQgbWFpbigpIHsKCmNoYXIgYXJyW10gPSAmcXVvdDthYmNkJnF1b3Q7OwoKY2hhciAqcCA9IGFycjsKCnByaW50ZigmcXVvdDslY1x0JnF1b3Q7LCArKypwKTsKCnByaW50ZigmcXVvdDslY1x0JnF1b3Q7LCAqcCsrKTsKCnByaW50ZigmcXVvdDslY1x0JnF1b3Q7LCAoKnApKyspOwoKcHJpbnRmKCZxdW90OyVjXG4mcXVvdDssICpwKTsKCnJldHVybiAwOwoKfQ==
#include <stdio.h>
int main() {
char arr[] = "abcd";
char *p = arr;
printf("%c\t", ++*p);
printf("%c\t", *p++);
printf("%c\t", (*p)++);
printf("%c\n", *p);
return 0;
}