Please slove all these questions in C language Write a funct

Please slove all these questions in C language

Write a function insert At Position N () for a singly-linked list that has the following declaration and precondition: int insert At Position N (strict node **p Head, int n, int new Data); Precondition: n > 0 and the list always has enough nodes to satisfy the position specified by n. The function should allocate memory for a new node, and initialize it with the new Data value. It should then insert the node at the nth position in the list. The first node in the list starts at position you may NOT assume that a make Node () function exists. The function should return 1 if a new node was created; 0 otherwise. Assume that strict node is defined as follows: strict node int data; strict node *pNext;

Solution

if you like this answer, please give a thumbs up and if you have some doubt just ask in the comment section below. I will try to help. Cheers

Please slove all these questions in C language Write a function insert At Position N () for a singly-linked list that has the following declaration and precondi

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site