Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- #include <conio.h>
- using namespace std;
- int main()
- {
- const int SIZE = 3;
- int arr[SIZE];
- int* ptr[SIZE];
- for(int i = 0; i < SIZE; i++)
- ptr[i] = &arr[i];
- for(int i = 0; i < SIZE; i++)
- cin >> arr[i];
- for(int i = 0; i < SIZE; i++)
- cout << *ptr[i] << " ";
- _getch();
- r
Add Comment
Please, Sign In to add comment