87

单选题 87 /101

以下程序打印的两个字符分别是?
#include<stdio.h>
#include<iostream>
using namespace std;
typedef struct object object;
struct object {
    char data[3];
};

int main(void) {
    object obj_array[3] = {{'a', 'b', 'c'}, {'d', 'e', 'f'}, {'g', 'h', 'i'}};

    object *cur = obj_array;
    printf("%c %c\n", *(char *)((char *)(cur) + 2), *(char *)(cur + 2));
    return 0;
}

参考答案

c g
b d
g g
g c