fork(7) download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int getVal(string name)
  7. {
  8. if (name == "Devashish") return 0;
  9. return 1;
  10. }
  11.  
  12. int main()
  13. {
  14. cout << 5 / getVal("Devashish");
  15. return 0;
  16. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
5