How to pass an array in verilog funcion

In reply to sambasiva:

that is true. I tried in verilog and got the error you mentioned.

I assumed sv as default.