Advertisement
fteussh

2 meows:3

Aug 29th, 2015
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 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 (*meow1, *meow2);
  23.  
  24.   cout << max << endl;
  25.    
  26.   return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement