Matthew Brown wrote:The position of the default statement doesn't matter - it's still only executed if none of the case conditions match (as your example shows).
One reason why it's a really bad idea to put it anywhere other than at the end of the switch statement.
thank you
now i understand, how this program works.