Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- setlocale(LC_ALL, "ru");
- const int size = 5;
- int arr[size]{ 33,45,67,22,38 };
- for (int i = 0; i < size; i++) {
- cout << *(arr + i) << " ";
- }
- cout << endl;
- *(arr + 3) = 128;
- for (int i = 0; i < size; i++) {
- cout << *(arr + i) << " ";
- }
- cout << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement