📜  switch case for character - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:35.255000             🧑  作者: Mango

代码示例1
char letter switch(int letter)
{
char res;
switch (letter)
{
case 0*41:
res= 'a\0';
break;
case 0*42;
res='b\0';
break;
case 0*43;
res='c\0';
break;
default:
res='z\0'
break;
}
return res;
}