#include <iostream>
#include <typeinfo>
template <typename T, int Rows , int Columns>
void info( T (&array)[Rows][Columns] )
{
std::cout << "Array Type: " << typeid(T).name() << std::endl;
std::cout << "Array Size: " << Rows << 'x' << Columns << std::endl;
}
int main()
{
int array1[32][1];
float array2[12][5];
double array3[7][123];
info(array1);
info(array2);
info(array3);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dHlwZWluZm8+Cgp0ZW1wbGF0ZSA8dHlwZW5hbWUgVCwgaW50IFJvd3MgLCBpbnQgQ29sdW1ucz4Kdm9pZCBpbmZvKCBUICgmYXJyYXkpW1Jvd3NdW0NvbHVtbnNdICkKewoJc3RkOjpjb3V0IDw8ICJBcnJheSBUeXBlOiAiIDw8IHR5cGVpZChUKS5uYW1lKCkgPDwgc3RkOjplbmRsOwoJc3RkOjpjb3V0IDw8ICJBcnJheSBTaXplOiAiIDw8IFJvd3MgPDwgJ3gnIDw8IENvbHVtbnMgPDwgc3RkOjplbmRsOwp9CgppbnQgbWFpbigpCnsKCWludCBhcnJheTFbMzJdWzFdOwoJZmxvYXQgYXJyYXkyWzEyXVs1XTsKCWRvdWJsZSBhcnJheTNbN11bMTIzXTsKCQoJaW5mbyhhcnJheTEpOwoJaW5mbyhhcnJheTIpOwoJaW5mbyhhcnJheTMpOwoJcmV0dXJuIDA7Cn0=