fork(1) download
  1. #include <stdio.h>
  2.  
  3. void hogeFunc(int *a) {
  4. void fugaFunc(int *b) {
  5. (*b) *= 10;
  6. }
  7.  
  8. fugaFunc(a);
  9. (*a) += 1;
  10. }
  11.  
  12. int main(void) {
  13. int foo = 5;
  14. hogeFunc(&foo);
  15. printf("%d\n", foo);
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
51