Question: 1. Name this program one.c-Complete the program shown below #include #include typedef struct letter char ch; struct letter *next; Letter; int main (void) t Letter

 1. Name this program one.c-Complete the program shown below #include #include

1. Name this program one.c-Complete the program shown below #include #include typedef struct letter char ch; struct letter *next; Letter; int main (void) t Letter a, b, c, d, e, f, g, h, i; b.ch = '0' ; b.next = &c ; c.ch= 'R'; c,next = &d ; d.ch = 'M'; d.next = &e ; ch = h.ch = 'O' ; 'R'; g. next h,next next &h ; &i ; = Letter *ptr = &a; while ( ptr != NULL ) { printf("Sc ", ptr->ch); ptr = ptr->next ; printf (" "); // rearrange pointers so that it spells "DIRTYROOM" while ( ptr != NULL ) printf("%c ", ptr->ch); ptr = ptr->next ; printf (" "); return 0; 2. Name this program two.c- In your one.c program, replace the line shown in blue below with the line shown in red. Modify the rest of your program (including insertion of the necessary malloc statements) so that your program runs the same as your one. c program runs Letter a, b, c, d, e, f, Letter *a, *b, *c, *d, *e, *f, *g, *h, *i; 3. Name this program three. c-Repeat program two. c using an array of thirteen Letters" that initially contains the phrase ELEVENPLUSTWO (allocate space, assign values, print the list). Then modify pointers irn the data array so that it says TWELVEPLUSONE. Print this revised list. Hint - your second print loop would start at data[10] if you encoded the original message in location 0..12 of the data array Letter *data [13]; For all problems, modify pointers to transform the word. Modifying character values is unacceptable

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!