Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // zadanie 3.
- #include <iostream>
- using namespace std;
- void zwolnij_zasob(int* tab)
- {
- delete[] tab;
- }
- int main()
- {
- int* tab = new int[6];
- for(unsigned i = 0; i < 6; ++i)
- {
- tab[i] = i;
- cout << tab[i] << '\t';
- }
- cout << endl;
- zwolnij_zasob(tab);
- for(unsigned i = 0; i < 6; ++i)
- cout << tab[i] << '\t';
- cout << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment