✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Use the following function template declaration and variable definitions to deduce the template type parameter T for each of the subsequent expressions involving calls to function foo. If template type deduction fails, choose as your answer.
template<typename T>
void foo(T);
int x{100};
const int cx{x};
int &rx{x};
int const &crx{x};
int *pi{&x};
int a[10]{10};
int const ca[10]{10,20};
int b[2][10]{};