设int a[5]={1,2,3,4};,元素a[‘E’-‘A’]的值是 。
在ASCⅡ中,A的值为65,E的值为69,所以a[‘E’-‘A’]就等于a[4]。在一维数组中,编号也是从0开始编号,因为int a[5]={1,2,3,4};,所以a[4]=0。
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。
本文链接:https://doc.20230611.cn/post/441957.html
上一篇:关于各个社会阶层消费者的特点,不正确的是()
下一篇:What is the author’s purpose of writing this passage?()