#include using namespace std; template void PrintArray(const T* arr, int size) { for (int i = 0; i < size; i++) cout << arr[i] << ' '; cout << '\n'; } int main() { // THIS has always been allowed int list1[10] = {2, 4, 6, 8, 10, 12, 14, 16, 18, 20}; cout << "list1 = "; PrintArray(list1, 10); // could not do the initialization below before c++11 !! int * ptr = new int[8] {3, 6, 9, 12, 15, 18, 21, 24}; //------------------------------ cout << "ptr = "; PrintArray(ptr, 8); }