printf("Do you want to push another node into the Linked List.?y/n\n"); scanf("%c", &ch);
}while(ch=='y' || ch=='Y')
}
Something like this, irrelevant code omitted.
Error:
createLL.c: In function ‘createLL’: createLL.c:71:41: error: incompatible types when assigning to type ‘Node’ {aka ‘struct node’} from type ‘Node *’ {aka ‘struct node *’} 71 | NEW[counter-1]= New; | ^~~
___SCRIPT MENU___ 1: Clean 2: Check In 3: Check Out for Build 4: Build Application 5: Run Application 6: Check Out for Development 7: Creat Log 8: Exit Please enter choice: 5main: Begin init: Begin init: End mainMenu: Begin mainMenu:___MAIN MENU___ mainMenu: 1: Create Linked List mainMenu: 3: Insert Node mainMenu: 4: Delete Node mainMenu: 5: Display Linked List mainMenu: 6: Sort Linked List mainMenu: 0: Exit mainMenu: Please enter the choice : 1 createLL: Begin createNode: Begin Enter info for a node 11 createNode: End If:NEW:0x1159b00, New:(nil) last->info=11 Do you want to push another node into the Linked List.y/n?y Counter:1createNode: Begin Enter info for a node 22 createNode: End ./testScript: line 42: 4859 Segmentation fault (core dumped) ./Link_List