Question: C programming: Given the following declaration: my_node* head = NULL; -Write C code that dynamically creates two my_node nodes whose data components are John and
C programming:
Given the following declaration:
my_node* head = NULL;
-Write C code that dynamically creates two my_node nodes whose data components are "John" and "Anna" respectively, and whose next pointers are set to NULL.
-Write C code so that head points to a linked list where "John" precedes "Anna".
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
