
2024년 2회 정보처리기사 실기 기출문제문제다음 C 프로그램의 실행결과를 쓰시오.#include struct node { int n1; struct node *n2;};int main() { struct node *head = NULL; struct node a = {10, 0}; struct node b = {20, 0}; struct node c = {30, 0}; head = &a; a.n2 = &b; b.n2 = &c; printf("%d", head->n2->n1); return 0;}정답20해설📌 주요 기본 개념1️⃣ 구조체(struct)struct 구조체이름 { 데이터형 변수1; 데이터형 변수2;};구조체는 서로 다른 ..