Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C programming. i can not figure out this question. code with comments would be appreciated to help me understand. MUST BE STORED IN malloc() Activities

C programming. i can not figure out this question. code with comments would be appreciated to help me understand. MUST BE STORED IN malloc()

image text in transcribed

Activities Sun 16:18 Image Viewer 133% @ @ Screenshot from 2020-01-26 16-17-05.png CITY.. 6. Create a function called create_alphabetical_array() that takes two parameters, a NULL terminated array of words, and the array of starting-letter word counts as returned by the alphabetical_word_count() function. The function should: o Create 26 arrays, each one to stores all the words that start with a particular letter . For example, one of the array of words will contain all of the words that start with 'a' or 'A'. There could be any number of words in a list. No maximums should be used. The final element for each of these should be the NULL pointer (not the empty string or the \O character). If there are no words that start with the letter being considered, the array of words should have one element in it, which should be set to the NULL pointer. o The 26 arrays should be stored in an array called alphabetical_array, such that alphabetical_array[0] contains the array of all 'a' words, alphabetical_array[1] contains the list of all 'b' words etc. . This array should be the function's return value . You can use this array to store the 26 arrays while they are being created. No need to have separate variable names for each of the 26 word arrays. Calculator Activities Sun 16:18 Image Viewer 133% @ @ Screenshot from 2020-01-26 16-17-05.png CITY.. 6. Create a function called create_alphabetical_array() that takes two parameters, a NULL terminated array of words, and the array of starting-letter word counts as returned by the alphabetical_word_count() function. The function should: o Create 26 arrays, each one to stores all the words that start with a particular letter . For example, one of the array of words will contain all of the words that start with 'a' or 'A'. There could be any number of words in a list. No maximums should be used. The final element for each of these should be the NULL pointer (not the empty string or the \O character). If there are no words that start with the letter being considered, the array of words should have one element in it, which should be set to the NULL pointer. o The 26 arrays should be stored in an array called alphabetical_array, such that alphabetical_array[0] contains the array of all 'a' words, alphabetical_array[1] contains the list of all 'b' words etc. . This array should be the function's return value . You can use this array to store the 26 arrays while they are being created. No need to have separate variable names for each of the 26 word arrays. Calculator

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions