Look at this c program, when I declare the "count" variable at beginning of program it gives incorrect result but gives correct when it declared inside first loop.