while(*p!=’u’){ printf("%c",*p-’u’+’U’);p++;}求解释下,这个语句,,谢谢!!

2025-02-25 20:54:04
推荐回答(1个)
回答1:

选 c

*p-'u'+'U' <==>*p-32;

*p本来是小写字母 ,但剪掉32后转化为大写字母

当 *p <==>'u'时退出

因此只输出 u前面的,而且是大写