switch ('B')
{
case 'A' : puts ("Eins");
case 'A'+1: puts ("Zwei");
case 'A'+2: puts ("Drei");
default : puts ("Null");
}
why is the output of this code
Zwei
Drei
Null
i understand the Zwei because 'A'+1 is equivalent to B, but wouldnt 'A'+2 be C? Does default mean that it is always an element of the output?
{
case 'A' : puts ("Eins");
case 'A'+1: puts ("Zwei");
case 'A'+2: puts ("Drei");
default : puts ("Null");
}
why is the output of this code
Zwei
Drei
Null
i understand the Zwei because 'A'+1 is equivalent to B, but wouldnt 'A'+2 be C? Does default mean that it is always an element of the output?