SHARE
TWEET

Untitled

a guest Feb 21st, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top