fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int x;
  6. x = 512;
  7. char *c = (char*)&x;
  8. c[0]=3;
  9. c[1]=1;
  10. printf("%d",x);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
259