아래 코드의 출력값을 작성하시오.
#include <stdio.h>
struct node { int n1; struct node *n2; };
int main() {
struct node a = {10, NULL};
struct node b = {20, NULL};
struct node c = {30, NULL};
struct node *head = &a;
a.n2 = &b; b.n2 = &c;
printf("%d\n", head->n2->n1);
return 0;
}댓글…
나만의 풀이, 암기법을 나눠 보세요. 정답이 포함될 수 있어요.
해설
왼쪽에서 보기를 고르고 정답 확인을 누르면
여기에 정답과 해설이 표시됩니다.
여기에 정답과 해설이 표시됩니다.
꿈라CBT