fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int foo[] = {
  5. (2<<24) + (3<<16) + (5<<8) + 7,
  6. (11<<24) + (13<<16) + (17<<8) + 19,
  7. (23<<24) + (29<<16) + (31<<8) + 37};
  8. int address = foo;
  9. int *conv = address;
  10. int *conv_offset = address+1;
  11. printf("%d\n", foo[0]);
  12. printf("%d\n", foo[1]);
  13. printf("%d\n", foo[2]);
  14. printf("%d\n", *(conv+0));
  15. printf("%d\n", *(conv+1));
  16. printf("%d\n", *(conv+2));
  17. printf("%d\n", *(conv_offset+0));
  18. printf("%d\n", *(conv_offset+1));
  19. printf("%d\n", *(conv_offset+2));
  20. return 0;
  21. }
Success #stdin #stdout 0s 2156KB
stdin
Standard input is empty
stdout
33752327
185405715
387784485
33752327
185405715
387784485
318898949
621481233
-1541989089