Code showing pointer declaration in c++