A. 3B. 1C. 0D. 2
Ans is ( B )
during first call func returns 0 and in second call it returns 1
Answer is B
First it returns 0 so i value becomes zero. With the same value it enters if loop and becomes false....so it returns 1.