testCase #4 not passed
https://ide.codingblocks.com/s/52674
arrays-Spiral print Anticlockwise
Hi ankush,
Change < to <= in line if(startCol<endCol){ and if(startRow<endRow){
Hit Like if you get it!
Cheers 
if i print the spiral clock wise then again #4 give run time error https://hack.codingblocks.com/contests/c/452/440
Hey Ankush, it is mentioned that integers M and N denoting the size of the matrix and Both M and N are less than 1000, but you are taking the 2D array of max size 10*10 only, So, read the constraints carefully.
Hey Tushar, i guess i have suggested the same thing 