hi
I was doing a program for inserting a item in to the linked list..i have to insert the item before the fist one..something is wrong with my ins_first() function
just help me out
Code:void ins_first(node *p) { int x; node *p1; p1=(node*)malloc(sizeof(node)); printf("\nEnter the number to be inserted in the begining: "); scanf("%d",&x); p1->number=x; p1->next=p; p=p1; return ; }