Demonstrate your function in a program by initializing an array in main and passing it and it's size to your function. Use the pointer returned by your function to print the contents of the array in...




Demonstrate your function in a program by initializing an array in main and passing it and it's size to your function. Use the pointer returned by your function to print the contents of the array in main. Don't forget to delete the array at the end of main using the pointer.


Your function should not interact with the user in any way (no cin or cout statements).


Do not use global variables.


Your function must use dynamic memory allocation to create the array. If it does not, you will receive 0 points for the assignment.


Do not use smart pointers.






May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here