아래 코드의 출력값을 작성하시오.
#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