Spiral print of 2_D array

sir why do not you write the while condition without =operator? to avoid writing if condition in the body of while loop
like : while(start_row<end_row&& start_col<end_col)

and why do we just write if statement for last two statements(( bottom row&& first coloumn )) not the four statements

please point your doubt in this code:


i am not able to understand your question