Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0301· OpenAIAi2 WildChat-4.8M (AI2)

求下列程序运行结果 #include <stdio.h> int main() { int a[3][3] = {1, 3, 5, 7, 9, 11, 13, 15, 17};…

  1. User

    求下列程序运行结果

    #include <stdio.h>

    int main()

    {

    int a[3][3] = {1, 3, 5, 7, 9, 11, 13, 15, 17};

    int(*p)[3], i, j;

    p = a;

    scanf("%d,%d", &i, &j);

    printf("%d\n", ((p + i) + j));

    return 0;

    }

  2. Assistant

    输入任意两个数字,例如 0 和 2,输出结果为 5。