Programming Tutorials

Comment on Tutorial - Increment and Decrement Operator By aathishankaran



Comment Added by : sajid

Comment Added at : 2011-09-06 20:51:54

Comment on Tutorial : Increment and Decrement Operator By aathishankaran
this is because dear u r using here postfix increment n++ this postfix assigned value 0 to n always before the increment in value and result would b 0 0 0 0 0 throughout the loop if u want that ur output will 1 2 3 4 5 then use prefix ++n here.

View Tutorial