What will be the output of the following program on GCC?

		
					

Loading

Choose the correct option.

What will be the output of the following program on GCC?

#include 
#include
int main(){
struct node{
struct node *pre;
struct node *next;
int i;
};
struct node *p,*q;
p=(struct node *) malloc(sizeof (struct node));
q=(struct node *) malloc(sizeof (struct node));
p->i=75;
q->i=90;

p->pre=NULL;
p->next=q;
q->pre=p;
q->next=NULL;
while(p!=NULL){
printf("%d ", p->i);
p=p->next;
}
return 0;
}

A. 75 
90
B. 75 
75
C. Infinite loop
D. Compiler error