fork download
  1. #include <iostream>
  2. #include <typeinfo>
  3. int main(int ac, char** av){
  4. int a = 5;
  5. int b = 2;
  6. auto c = a / b;
  7. std::cout << a << b << c << std::endl;
  8.  
  9. std::cout << "The type of c is:" << typeid(c).name() << std::endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 4648KB
stdin
Standard input is empty
stdout
522
The type of c is:i