fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. char arr[] = "abcd";
  5. char *p = arr;
  6.  
  7. printf("%c\t", ++*p); // Increment the value pointed to by p, then print it.
  8. printf("%c\t", *p++); // Print the value pointed to by p, then increment the pointer.
  9. printf("%c\t", *p++); // Print the value pointed to by p, then increment the value.
  10. printf("%c\n", *p++); // Print the current value pointed to by p.
  11.  
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 5284KB
stdin
#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;

}
stdout
b	b	b	c