Presuming that the the coder wanted to assign a value of -3 to k and decrement it while k was greater than -5, his for loop should have read "for (k = -3; k > -5; k - -) The condition within the for loop should be thought of as 'while' not 'until' and of course, when dealing with negative integers pay attention to increment as opposed to decrement.
@johnc3403