switch(ch)
{
case 'a':
case 'A':
case 'e':
case 'E':
case 'i':
case 'i':
break;
default : ch = 'N';
break;
}
Comment your answers fast......
Give me your answers.....
In the above code fragment errors are:
i) The variable ch is uninitialised.
ii) The switch statements two case constants are
identical : case 'i' and case 'i'.
The case constant must have different value.
EmoticonEmoticon