fork download
  1. #include<stdio.h>
  2. #include<malloc.h>
  3. #include <stdlib.h>
  4. #include <stdint.h>
  5. int main()
  6. {
  7. //char *p,*q;
  8. uint32_t *x = malloc(sizeof(uint32_t)*4); //Assume that x == 0x20000000
  9. x[0] = 0xDEADBEEF;
  10. x[1] = 0xC561C156;
  11. x[2] = 0x00DC1A55;
  12. x[3] = 0xABADCAFE;
  13. uint64_t y = *((uint64_t*)x);
  14.  
  15. printf("Hello!");
  16. printf("%d", y);
  17. printf("Here!");
  18. return 0;
  19. }
Success #stdin #stdout 0.01s 5504KB
stdin
Standard input is empty
stdout
Hello!0Here!