#include <iostream>
int main()
{
int *p = new int[10]{}; //notice the {}
for(int *it = p; it != p+10; ++it)
{
std::cout << *it << std::endl;
}
delete[] p;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKQp7CglpbnQgKnAgPSBuZXcgaW50WzEwXXt9OyAvL25vdGljZSB0aGUge30KCWZvcihpbnQgKml0ID0gcDsgaXQgIT0gcCsxMDsgKytpdCkKCXsKCQlzdGQ6OmNvdXQgPDwgKml0IDw8IHN0ZDo6ZW5kbDsKCX0KCWRlbGV0ZVtdIHA7Cn0K