Advertisement
TwITe

Untitled

Jul 7th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. {
  2.     int * foo;
  3.     foo = new int[5];
  4.     for (int i = 0; i < 5; i++) {
  5.         *(foo+i) = rand();
  6.     }
  7.     for (int i = 0; i < 5; i++) {
  8.         cout << *(foo + i) << " ";
  9.     }
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement