fork download
  1. #include<iostream>
  2.  
  3. template<char a[]>
  4. struct T {
  5. void output() { std::cout << a; }
  6. };
  7.  
  8. char str[] = "Hello";
  9.  
  10. int main() {
  11.  
  12. T<str> t;
  13. t.output();
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 2896KB
stdin
Standard input is empty
stdout
Hello