Https://ide.codingblocks.com/s/467424

How to resolve the error in the code

hello @nitinchoudhary260

u cannot pass variable as matrix size in function argument(in case of static array).

check ur updated code here->

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.