fork download
  1. #include <iostream>
  2. #include <typeinfo>
  3.  
  4. int main()
  5. {
  6. int a[2];
  7.  
  8. std::cout << typeid(a).name() << '\n';
  9. std::cout << typeid(a[0]).name() << '\n';
  10. std::cout << typeid(&a[0]).name() << '\n';
  11. std::cout << typeid(&a).name() << '\n';
  12. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
A2_i
i
Pi
PA2_i