fork download
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4. const char *str = "\x00\x4\x00\x00";
  5. const int *p = (const int *)str;
  6. printf("%d\n", *p);
  7. return 0;
  8. }
  9.  
Success #stdin #stdout 0.01s 1676KB
stdin
Standard input is empty
stdout
1024