how to detect that tupe of variables in an array in c++ code example Example: arrays in C++ int leng = 10; double X[leng];