This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

not able to exit the loop (suggestions urgently required)

hi
all iam working on cygnal mcus .iam using
i=5;
do
{i--;
}while(i!=1);
but this condition is not satisfying when i==1 ;iwant to exit at i=1 but its going in infinite loop kindly help me how to quitfrom
this loop

regards
john e

Parents
  • "actually still the loop is not exiting is there any exit commands in keil c"

    JOHN e,

    You are displaying a serious lack of knowledge about very basic 'C'. I suggest you get a good 'C' book and invest some time learning 'C' before attempting to program the 8051 or you will fail to produce reliable code.

    Stefan

Reply
  • "actually still the loop is not exiting is there any exit commands in keil c"

    JOHN e,

    You are displaying a serious lack of knowledge about very basic 'C'. I suggest you get a good 'C' book and invest some time learning 'C' before attempting to program the 8051 or you will fail to produce reliable code.

    Stefan

Children
No data