Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- const int size = 10;
- int arr[size];
- for (int i = 0; i < size; i++) {
- *(arr + i) = rand();
- cout << *(arr + i) << " ";
- }
- cout << endl;
- cout << *arr << " " << *(arr + 4) << endl;
- //cout << arr << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment