I am really troubled about how to pass matrices to functions in C++. The solutions I looked up in different forums seemed troublesome and as of now I feel its better to treat the matrix as an array. But if someone has a better idea I would definitely like to know about it.
I had the exact same question a few months ago, and @betlista helped me a lot…
Below you can find the link to the same question and answer too:
Hope it helps you out…
If anything else is needed please post here and Im sure someone will help you out!!
wow, I forgot that already Thanks for finding it for @arnabbcs08
You’re welcome, after all, Codechef’s strength is on its awesome community!