Array allocation in C++ | Hacker News Reader