c++ plugin help

Hi!
I want to explore this option since Unity 5 its available for free. I was playing with this and managed to create C++ dll and use it in unity with C#.

I am wondering is there any option to have dll functions return arrays somehow. I know that if you want to return array from function you return pointer to the first element but how that is picked up by unity?

Is there any example that I could use?

There is a bunch of tips available, like here: