fork download
  1. #include <stdio.h>
  2. int m=7780;
  3. int *p()
  4. {
  5. int *x=&m;
  6. return x;
  7. }
  8. int main(void) {
  9. int *n;
  10. n=p();
  11. printf("%d\n",*n);// your code goes here
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
7780