Hi Abimaran, My question is different, The above code produces 2 compiler errors at Lines 8 and 17. How Line 8 knows that there is duplicate case which is defined at Line 17. At this point, Line 17 is error means compiler did not take it.
There's a way to do it better - find it. -Edison. A better tiny ad:
a bit of art, as a gift, that will fit in a stocking