fork download
  1. #include <bits/stdc++.h>
  2.  
  3. auto f(auto a, auto b) {
  4. std::cout << "call f(" << a << ", " << b << ")" << std::endl;
  5. std::cout << "sizeof(a) = " << sizeof(a) << ", sizeof(b) = " << sizeof(b) << std::endl;
  6. return a + b;
  7. }
  8.  
  9. int main() {
  10. std::cout << f(2, 1LL) << std::endl;
  11. std::cout << f(2LL, 1) << std::endl;
  12. return 0;
  13. }
Success #stdin #stdout 0s 4380KB
stdin
Standard input is empty
stdout
call f(2, 1)
sizeof(a) = 4, sizeof(b) = 8
3
call f(2, 1)
sizeof(a) = 8, sizeof(b) = 4
3