(case 1 left blank here....is it not showing any error.? )
i=0,k=−1,i+k=−1 , default case is executed, printf count=1
i=1,k=−1,i+k=0, default case is executed, printf count=2
i=2,k=−1,i+k=1, case 2, case 3 and default case is executed, printf count=5
i=3,k=−1,i+k=2, case 2, case 3 and default case is executed, printf count=8
i=4,k=−1,i+k=3, case 3 and default case is executed, printf count=10
i=5, loop exits and the control returns to main
( there is no break statement in the program so it will execute all the print statement serially?)
28 Feb 2018 - 5:07pm