Learner010 99 Posting Whiz in Training

A fault in C++ !

i'm not in a position to say such.

it should be executed only when no case is true

100% agree with you.

If every case has a break no default will be executed if the switch condition matches a case.

yes , correct. but this is not what the op wants. i think he wants the explanation about "why break statement becomes essential in switch statement ?"

i can't answer the question of why ?but still i say that it is due to flow of control .

This may be fault in c++ because vb.net has improved this(i'm learning it).