ArraYy 1 Challenges(Question 1)

How can we implement the code using dynamic memory allocation,I mean how to pass the array while calling the function,how to accept the array by the called function and how to return maximum value in the array to main function?

int *a=new int[size] now the array can be use normally
like a[0] is first element
also u can pass the array like
int func(int *a)
func(a)

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.