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++;
}

1 comment:

  1. Appreciation for nice Updates, I found something new and folks can get useful info about BEST ONLINE TRAINING
    Appreciation for nice Updates, I found something new and folks can get useful info about BEST ONLINE TRAINING

    ReplyDelete

"Don't let anyone ever make you feel like you don't deserve what you want."