The following piece of "C" language code suppose to print K = 0 Ctr = 5But its printing K = 0 C = 1. This is happening in "Release" configuration. Its printing correctly in Debug mode.=====================int k = 0;int Ctr = 0; for (k = 0; k < 5; k++) { if(k == 0 ) { printf("K = 0"); } Ctr++; } printf(" Ctr = %d \n",iCtr );==================Note: - I tested in VS 2008. I hope it will happen in 2010 too.
Visual Studio/Team Foundation Server/.NET Framework Tooling version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results
Please wait...