I'm having a very puzzling problem with my PC. Recently I have not been able to boot very consistently. The boot will hang during the Windows 7 splash screen and will not go further. The same thing happens when trying to run Startup Repair. At this point in time, I cannot boot, period. 

I've tried booting in safe mode. Safe mode boot hangs after loading disk.sys and will not go further. I've tried using LKGC, which also had no affect.

Normally in this situation, I would do some hardware testing (memtest, chkdsk, windows recovery), but for some reason I cannot boot to any disks whatsoever. The DVD drive I'm trying to boot with is only a few weeks old (my old one died recently), and I've used these disks to boot with before, so I know they are good. 

At this point, I'm a bit stymied as to what I should do next. I'm downloading Ubuntu now to try and backup some stuff, but again, I doubt the boot will be successful. If anyone has any advice on what to try now, I would really appreciate the help.


Question: Why is the result not 1?
Answer: The sequence of events is:


The RHS is evaluated (0)
The post increment is done (m++).
The evaluated result is assigned (m=0 again).


i.e. this is equivalent to:

tmp = m;
m++;
m = tmp;


If you did m = ++m, the sequence would be:


The pre increment is done (++m).
The RHS is evaluated (1)
The evaluated result is assigned (m=1).