Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int ile;
- int main()
- {
- cout<<"Ile liczb w tablicy: ";
- cin>>ile;
- int *tablica;
- tablica = new int [ile];
- for(int i=0;i<ile;i++)
- {
- cout<<(int)tablica<<endl;
- tablica++;
- }
- delete [] tablica; //zwolnienie pamieci
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement