Question: Assume you correctly hooked up the tree structure given in the last problem. Which of the following are valid ways of changing the 'i' in

Assume you correctly hooked up the tree structure given in the last problem. Which of the following are valid ways of changing the 'i' in the tree to a 'u'? Here is the code and diagram again: 1-#include stdlib.h> 3- typedef struct node 5 char letter; 6 struct node left; 7 struct node right; 8 Node; 10 Node createNode(char ch) 12 Node n malloc(sizeofCNode)); 13 n->letter-ch; 14 n->left NULL 15 nright NULL 16 1 17 18 int main(void) 19 f 20 Node nodeT createNodeC't 21 Node* nodel-createNode('h') 22 Node node createNodee: 23 Node nodeI createNode 24 Node nodeS createNodeC's 26 Letter struct node ? nodeT. >left-eright-letter" 'u"; nodeT>left->right, > right="u'; U nodeT-right-left letter u' G nodel letter "u U nodeH-right->letter 'u u nodel--letter
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
