fork(4) download
  1. #include <iostream>
  2. #include <cstdint>
  3. using namespace std;
  4.  
  5. template<class T>
  6. void print_type(T) {
  7. std::cout << __PRETTY_FUNCTION__ << std::endl;
  8. }
  9.  
  10. int main() {
  11. int16_t a = 10;
  12. int16_t b = 20;
  13. print_type(a);
  14. print_type(b);
  15. print_type(a - b);
  16. return 0;
  17. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
void print_type(T) [with T = short int]
void print_type(T) [with T = short int]
void print_type(T) [with T = int]