Question: in C please #include #include #include typedef struct letter { char info; struct letter *next; } Letter; // Build a linked list to represent the
in C please

#include
typedef struct letter { char info; struct letter *next; } Letter;
// Build a linked list to represent the specified word. // Return the head of the linked list built. Letter *buildList(char word[]);
// Print the linked list. // For example, if the linked list represents CRIMSON, // it prints C-->R-->I-->M-->S-->O-->N void printList(Letter *head);
int main() { char word[100]; printf("Enter a word: "); scanf("%s", word);
Letter *head=buildList(word);
printList(head);
return 0; }
include #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
