Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <conio.h>
- #include <iostream>
- using namespace std;
- void showArray(int array[], int size)
- {
- int* start = array;
- int* end = start + size;
- while(start != end)
- {
- cout << *start;
- start++;
- }
- }
- int main()
- {
- const int SIZE = 5;
- int array[SIZE];
- for(int i = 0; i < 5; i++)
- cin >> array[i];
- showArray(array, SIZE);
- _getch();
- return 0;
- }
Add Comment
Please, Sign In to add comment