Whats wrong in my code is there something i need to add?
@supratik260699 i think you have shared the code of wrong question, it is not for array spiral print
Sorry i shared the wrong code this is the code of array spiral print
Yes there are things that you need to add. I will suggest you to first watch Spiral Print of 2D Array video lecture available in the course and then again try it and after this if you are not able to solve then feel free to ask here.
the output is coming but at last line wrong output is coming and for few test cases segmentation fault is occuring can you please check?
@supratik260699
Segmentation fault is because of you are doing i++ in 4th for loop, instead of i–.
Correct it, your solution will be accepted.
-> Also don’t forget to print the numbers with ", " and print “END” at last.
Also please mark this doubt as resolved if you are able to solve it now.