Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- int * foo;
- foo = new int[5];
- for (int i = 0; i < 5; i++) {
- *(foo+i) = rand();
- }
- for (int i = 0; i < 5; i++) {
- cout << *(foo + i) << " ";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement