fork download
  1. #include <stdio.h>
  2.  
  3. static int foo = 123;
  4. static int bar = 456;
  5.  
  6. int main(void) {
  7. printf("foo = %d; bar = %d\n", foo, bar);
  8. int *fooptr = &foo;
  9. printf("*fooptr = %d\n", *fooptr);
  10. ++fooptr;
  11. printf("*fooptr = %d\n", *fooptr);
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
foo = 123; bar = 456
*fooptr = 123
*fooptr = 456