Question: Topic: Pointers & Array C++ Programming language. Q4 & Q5. I will immediately rate your answer 4) Write code segments to perform the following tasks.
Topic: Pointers & Array C++ Programming language. Q4 & Q5. I will immediately rate your answer


4) Write code segments to perform the following tasks. i. Declare an integer array, numList with size of 8 ii. Declare an integer pointer, iPtr iii. Use for loop to read 8 integers from the keyboard iv. Use array as pointer constant to display the numbers 5) Write two statements to free dynamically allocated array and double which are declared as follows: int *iPtr = new int [100]; double *dPtr = new double
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
