In this assignment, I don’t want you to change anyfunctionality. All I want you to do is change the implementation ofthe loop from iterating through the array to the use of a singlepointer. The output will remain the same.
This is not trivial, so it may take some research and please readthe daily readings that I provide.
Here is a major hint. After the array is created, simply create apointer variable called pNumbers and use that to print the valuesof the array.
#include “stdafx.h”
#include <iostream> #include <string> using namespacestd;
int main()
{
int number[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31,
OR
OR