Size of the input arrays

what should be the size of the inputs arrays and why to declare the input using the char arrays 2d and using string if arrays ?

@Vikaspal size of input array should be nm or if you want constant size then you can make it of 10011001.if you can do it using string then no problem you can do it that way also else you can take 2d char array.

@sdevwrat input constraints 1000 extra one for null charactery
and share the code for dynamic allocation

since we will use recursion here it will be better to keep array size constants otherwise passing 2d array to function may cause problems.

@sdevwrat okay got can and also when we are passing the arrays like this arr[] in functions declarations it is pass by value and *arr is pass by references right? or both are same things

both will work same.

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.

@sdevwrat so value does not both are pass by value of pass by reference because it reflect the changes in the original arrays