Advertisement
fteussh

lol=)

Aug 31st, 2015
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int wtf (int* a, int* b) {
  6.      if (*a >= *b) {
  7.       return *a;
  8.      } else {
  9.       return *b;
  10.      }
  11.   }
  12.  
  13. int main ()
  14. {
  15.   int a = 1538;
  16.   int b = 1223;
  17.  
  18.   int *meow1 = &a;
  19.   int *meow2 = &b;
  20.  
  21.  
  22.   int max = wtf (&a, &b);
  23.  
  24.   cout << max << endl;
  25.    
  26.   return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement