SHARE
TWEET

Untitled

a guest Jul 15th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int f1(int *a) {
  5.     return *a + 1;
  6. }
  7.  
  8. int *f2(int *a) {
  9.     return a + 1;
  10. }
  11.  
  12. int *f3(int &a) {
  13.     return &a + 1;
  14. }
  15.  
  16. int main() {
  17.     int t[] = {0, 1, 2, 3};
  18.     cout << f1(f3(*f2(t)));
  19.     return 0;
  20. }
  21.      
  22. f3(*f2(t))
  23.    ^ look at this
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top