Array size via params + allocation of arrays with malloc