In case of comma separation not working with swtich case. is there any way to do this?
switch(test)
{
case 0,1://not working it take last one (1)
"test"
break;
case 2,3://not working it take last one (3)
"test2"
break;
case 4,5://not working it take last one (5)
"test3"
break;
}
How can i add further number with each case?
You should fall through (which is considered a bad practice)