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

Case/while/break question

Hi,

I'm using the uVision Realview compiler and am confused about the 'break' statement inside the 'while' loop inside the 'case' statement : does it exit the while loop and executes the 'extra code' or does it exit also the 'case' statement completely without executing the 'extra code'?

use next (abstract) code:


switch ( x ) {

  case y:

    while(1){

      break;

    }

  'extra code'

  break;

}

Thanks

Henk