NODE *create() 这种函数类型,他们的值是怎么传递的?
#include <stdio.h>#include <malloc.h>
typedef struct node
{
int data;
struct node *next;
}NODE;
NODE *create() /////////////
{
NODE *head;
head=(NODE *)malloc(sizeof(NODE));
head->data=5;
return head;
}
void main()
{
NODE *a;
a=create();
printf("%d",a->data);
printf("\n");
}