Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int f(int a) {
  5. a = 0;
  6. return a;
  7. }
  8.  
  9. int foo1(int b) {
  10. return f(b) + 1;
  11. }
  12.  
  13. int foo2(int c) {
  14. return f(c);
  15. }
  16.  
  17. int main(void) {
  18. cout << foo1(10) << '\n';
  19. cout << foo2(10) << '\n';
  20.  
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement