fork(4) download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. const int x = 1;
  5. int *px = (int *)&x;
  6. *px = 0;
  7. printf("x is %d", x);
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
x is 0