fork download
  1. #include <cstdio>
  2. #include <type_traits>
  3.  
  4.  
  5. int main()
  6. {
  7. int *p1;
  8. int const *p2;
  9.  
  10. std::printf("%s\n",
  11. std::is_same<decltype(p1), decltype(p2)>::value ? "the same" : "not the same"
  12. );
  13. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
not the same