Array Coding Questions In Cpp