Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main()
- {
- int arr[3],i;
- int *p;
- p = arr;
- cout << "Input Array Elements...."<<endl;
- for(i=0; i<3; i++)
- {
- cin >> *(p+i);
- }
- cout << "Array Elements excess by Pointer..."<<endl;
- for(i=0; i<3; i++)
- {
- cout << *(p+i) << " ";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment