Created
November 21, 2017 18:48
-
-
Save anonymous/7d4dbd4630908bc41eb0cc05998cb69e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int ile; | |
int main() | |
{ | |
cout << "Ile liczb w tablicy: "; | |
cin>>ile; | |
//dynamiczna alokacja tablicy | |
int *tablica; | |
tablica=new int [ile]; | |
//pokaz kolejne adresy komorek w tablicy | |
for (int i=0; i<ile; i++) | |
{ | |
cout<<(int)tablica<<endl; | |
tablica++; | |
} | |
delete [] tablica; | |
tablica=NULL; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment