#include <iostream> template<typename T, std::size_t N>void f(T (&)[N]){ std::cout << N << std::endl;} int main(){ f("test"); f("test two");}
Standard input is empty
5 9
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!