Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <ctime>
- using namespace std;
- int main()
- {
- srand((unsigned)time(0));
- int n = 8;
- int *p = new int[n];
- int test = 0;
- int suma = 0;
- for (int i = 0; i < n; i++){
- p[i] = rand() % 100;
- cout << i << " - " << &p[i] << endl;
- }
- cout << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement