Go4Expert Member
26Nov2012,18:56   #11
IndiraP's Avatar
yup..
Mentor
27Nov2012,04:46   #12
xpi0t0s's Avatar
My favourite debugging technique is to get in there with a debugger, or failing that to sprinkle printf statements liberally across the code to display variables and why we are where we are, and find out what the program is *actually* doing. If you try debugging code based on what you *think* it's doing then you'll get nowhere, because you'll always think the code is doing what you were thinking when you wrote it - hence you not realising that ++ was in the wrong place.
Go4Expert Member
27Nov2012,17:56   #13
IndiraP's Avatar
yes sir...i will try to use printf to see wats actually happening from now on..