fork download
  1. #include <iostream>
  2.  
  3. typedef char ar[];
  4. typedef char* pr;
  5. void f2(ar x, pr y)
  6. {
  7. std::cout << std::is_same<decltype(x), decltype(y)>::value << '\n';
  8. std::cout << std::is_same<ar, pr>::value << '\n';
  9. }
  10.  
  11. int main()
  12. {
  13. char data[] = "data";
  14. char *ptr = data;
  15. f2(data,ptr);
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
1
0