Spiral Print of 2D Array

In this case, the program is not waiting for input why??

Hello @dasvishal60 please share your code by saving it on Ide.codingblocks.com

this is the second case the first input case in screenshot
code:- https://ide.codingblocks.com/s/447158

first case is working in coding block ide but not in vs-code why??

cant we use an array like this a[row][col] ??

and if I change the value of a[100][100] to 1000 and it’s not working why??

@dasvishal60 we can use this but when you have to pass the 2d array in function then you have to define at least the number of columns.

it should work:
share the code where it is not working.
in main there is specific limit for size which you can define inside the main.
but this comes in range.

in vs-code after giving size[1000] it compiles successfully but the console doesn’t wait for input and execute itself without taking input and I also check the same code in CB ide it’s working fine there but not in VS code why??

@dasvishal60 i am not sure about vs code.
i always practice on cb ide only.
though i think it should not happen but if it is happening then i think vs code may have it own limitations in defining the array:

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.

1 Like