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 5280KB
stdin
Standard input is empty
stdout
b	b	b	c