Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Allocate memory on the stack for an array of 10 integer pointers. Keep reading integers until -999 is entered. Dynamically allocate memory for each integer and store the pointers returned by new in the array of pointers. When -999 is entered, display the integers using the pointers (20 points).
- The following shows a sample execution of the program:
- Input: 75 90 87 70 66 -999
- Output: 75 90 87 70 66
Add Comment
Please, Sign In to add comment