Dynamic Array Example int* read_data(size_t n) { int* a = new int[n]; for (size_t i = 0; i < n; ++i) std::cin >> a[i]; return a; }