I dont know if function call is allowed in initialization and all that part of for. But i think should be allowed. You can check it by running on C.
But I am getting C as answer. Bcoz, the most imp point in solving this question is how for is executed.
First initialization occurs but only once. Then condition check, then execute body, then increment decrement and then repeat.(initialization will not occur now occurs only at start)