fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char a[] = {10,20,30,40,50};
  5. char *b = a+2;
  6. b[0]= 123;
  7. printf("%i %i %i %i %i\n", a[0], a[1], a[2], a[3], a[4]);
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
10 20 123 40 50