开放大学在线学习搜题
当前位置:首页 > 学习题库 > C语言程序基础

问题

下列程序的运行结果是______ 。 #include < stdio.h > void main() { struct st { int x, y; } a[4] = { { 10, 20 }, { 30, 40 }, { 50, 60 }, { 70,

发布时间:2025-05-24   作者:江苏开放大学   浏览:0

下列程序的运行结果是______ 。

#include < stdio.h >
    void main() {
    struct st {
        int x, y;
    }
    a[4] = {
        {
            10, 20
        }, {
            30, 40
        }, {
            50, 60
        }, {
            70, 80
        }
    };
    struct st * p = a;
    printf("%d,", p++- > x);
    printf("%d,", ++p - > y);
    printf("%d\n", (a + 3) - > x);
}

您可能感兴趣的试题