fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int a[]= {1, 2, 3};
  6. int *ptr = a;
  7.  
  8. ++(*(++ptr));
  9.  
  10. printf("%d\n", a[0]);
  11. printf("%d\n", a[1]);
  12.  
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
1
3