you are right in the way in cpp code it is not required but in C , you
can not write like node * start. it only recognise new type when
typedef is applied. second one is already explained by vijay

On Aug 18, 6:16 pm, Vijay <kvija...@gmail.com> wrote:
> 1. typedef is used to rename the data type. Here struct node is actual
> data type of linked list node and is renamed to NODE using
> typedef .Instead of using struct node each time we   declares a new
> node variable we can use simply NODE.
>
> 2.**start is required if you pass actual parameter as address,
>                 suppose NODE *temp = (NODE *) malloc (sizeof(NODE));
> is the new node created; and you have to use the following function
> call
>
>                      createemptylist(&temp);
>
>                 It is important to pass this by address as changes
> made in the called function should be reflected on the linked list.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to