#include
voidYesNo(charch)
{switch(ch)
{case'y':
case'Y':printf("\nThisisYES.\n");____;
case'n':
case'N':printf("\nThiSisNO.\n");
}
}
main()
{charch;
prinff("\nEnterachar'y','Y''or'n','N':");
ch=____;
printf("ch;%c",ch);
YesNo(____);
}
【正确答案】:先输入变量ch,并将它作为参数传给YesNo函数。 break gechar() ch