updated C pointers/ C++ pointers and arryas and reference