dear neil i am sure that there no error or bug in that part of code because i am not doing any thing other than simple addition to variable that are showing these undesired values if i put optimization level 3, these errors are not coming Thanks for your replay hari