fork download
  1. #include <stdio.h>
  2.  
  3. void myFunc(char *f_reset)
  4. {
  5. if (*f_reset)
  6. {
  7. printf("in if block\n");
  8. }
  9. else
  10. {
  11. printf("in else block\n");
  12. }
  13. }
  14.  
  15. int main()
  16. {
  17. char r = 0;
  18. char *f_reset = &r;
  19.  
  20. *f_reset = 0;
  21.  
  22. myFunc(f_reset);
  23.  
  24. return 0;
  25. }
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
in else block