General doubt in c++

how to return array in function

Hello @viknesh1375 checkl this:


if you have any doubt you can ask here:
Happy Learning!!

pls explain how it returns

@viknesh1375 we have created the pointer which in which we are storing the array which is being returned by the fucntion.
and also we have defined the function of the type pointer so that it can return the pointer to the array.

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.