Need a project done?

C++ Programming Developer

Search This Blog

Write a program to enter the values into an array using pointer notation in C++.


#include <iostream>
using namespace std;

int main()
{
int array[10];
cout <<"Enter 10 values with spaces and press enter in the end.";
int *parray = array;
for (int i = 0; i<10; i++)
cin>>*parray++;
}
"Don't let anyone ever make you feel like you don't deserve what you want."