- 새싹교실/2012/AClass/4회차
NODE*NewNode = (NODE*)malloc(sizeof(NODE));
Strcpy(NewNode->Name,name);
NewNode->NextNode = NULL;
Return NewNode;
NODE* 를 반환하는 CreateNode다. NewNode라는 포인터를 생성후 그 해당하는 주소에 malloc함수로 공간을 할당하고 있다.
- 새싹교실/2017/따라와반/과제방/자료구조/4회차
Node* NewNode(int data);
Node* NewNode(int data){
(*head)= NewNode(data);
Node* NewNode(int data);
Node* NewNode(int data){
Node* tmp = NewNode(data);
Node* NewNode(int data);
Node* NewNode(int data){
Node* tmp = NewNode(data);
Node* newNode;
newNode = (Node*)malloc(sizeof(Node));
newNode->data = input;
newNode->ptr = head;
head = newNode;
Found 2 matching pages out of 7540 total pages
You can also click here to search title.