Closed. This question is off-topic. It is not currently accepting answers. Learn more。
想改进这个问题吗?Update the question所以堆栈溢出的值小于aa>。
6年前关闭。
我想知道C中每个字符从A到Z的数值,整数值是多少。
如果你能给我看看找出字符串中每个字符值的代码,我将不胜感激。
谢谢
想改进这个问题吗?Update the question所以堆栈溢出的值小于aa>。
6年前关闭。
我想知道C中每个字符从A到Z的数值,整数值是多少。
如果你能给我看看找出字符串中每个字符值的代码,我将不胜感激。
谢谢
最佳答案
这是
char *s="ABCDEFGHIJKLMNOPQRSTUVXYZ";
while(*s!='\0')
{
printf("%c --> %d\n",*s,*s);
s++;
}