1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#include <iostream> /* * * 6.37 * * */ std::string (&myfunction())[10]; auto myfunction2() -> std::string(&)[10]; // This is obviously the easiest way to do it std::string myarray[10]; decltype(myarray) &myfunction3(); int main () { return 0; }