有以下程序
#include <stdlib.h>
Struct NODE
{int num; struct NODE *next; }
Main()
{struct NODE *p,*q,*r;
P=(struct NODE *)malloc(sizeof(struct NODE));
Q=(struct NODE *)malloc(sizeof(struct NODE));
R=(struct NODE *)malloc(sizeof(struct NODE));
P->num=10;q->num=20;r->num=30;
P->next=q;q->next=r;
Printf("%d\n",p->num+q->next->num);
}
程序运行后的输出结果是______。
A.10 B.20 C.30 D.40正确答案D