单选题

对以下程序,正确的输出结果是() #include #define SUB(x,y) x-y #define ACCESS_BEFORE(element,offset,value) *SUB(&element, offset) = value int main() { int array[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 } int i ACCESS_BEFORE(array[5],

发布于 2022-03-03 11:05:50

对以下程序,正确的输出结果是() <stdio.h>
#include <stdio.h>
#define SUB(x,y) x-y 
#define ACCESS_BEFORE(element,offset,value) *SUB(&element, offset) = value 
int main() { 
    int array[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 } 
    int i 
    ACCESS_BEFORE(array[5], 4, 6) 
    printf("array: ") 
    for (i = 0 i < 10 ++i) { 
        printf("%d", array[i]) 
    } 
    printf("\n") 
    return (0) 
}
</stdio.h>

登录后免费查看答案
关注者
0
被浏览
44
1 个回答
知识点
面圈网VIP题库

面圈网VIP题库全新上线,海量真题题库资源。 90大类考试,超10万份考试真题开放下载啦

去下载看看