C PROGRAMMING A. Follow the requirements and write a complete and valid C-statement/s for each item. 1. Create a node name TEMPLATE that contains your name (15 element array of char), age (int) and a...


C PROGRAMMING



A. Follow the requirements and write a complete and valid C-statement/s for each item.


1. Create a node name TEMPLATE that contains your name (15 element array


of char), age (int) and a pointer to structure of the same structure type.


2. Create structure name HEAD, TAIL and CURRENT of type TEMPLATE.


3. Allocate memory location for CURRENT.


4. Assign “Loyda” to the CURRENT ‘s first member


5. Assign 24 to CURRENT ’s second member


6. Point CURRENT ’s third member to NULL


7. Point HEAD to CURRENT


8. Point TAIL to CURRENT


9. Repeat item #3


10. Using scanf( ) function write a C-statement that will assign value to the 1st and 2nd members of CURRENT.


11. Repeat item #6,7and 8.


12. Write C- statement that will display the value of 1st and 2nd member of HEAD


13. Write a C- statement that will display the value of 1st and 2nd member of TAIL


14. Draw the linked list representation of the above statements showing the where


the HEAD, CURRENT, TAIL points finally. Also assume that the node have valid value in it,






Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here