Question: C Program question (a) Study the following program and the first three lines of the output. Work out the remaining lines of output using the

C Program question

C Program question (a) Study the following program and the first three

(a) Study the following program and the first three lines of the output. Work out the remaining lines of output using the information of the first 3 lines. Note that executing the program on your computer may help, but some of the actual values may differ. include #include struct storeRoom int roomNum; char roomTitle [256] int size char type: int main ) struct storeRoom roomArray[2561: struct storeRoom another: anotherroomArray[2] printf ("%d ", printf ("%d ", printf("%d ", sizeof (struct storeRoom) ) ; roomArray) ; &roonArray[1]); printf ("%d ", sizeof (roonAr ray) ) ; printf ("din", sizeof (another)) printf("%d ", &(roonArray[4])); rintf("%d ", another + 2);} 268 76571 6765980 (b) The normal way to format a text message is to have exactly one space betweern two consecutive words. Sometimes people add additional spaces either accidently or on purpose.* Complete the following function that looks for consecutive spaces in a string, and finds out the length of the longest such consecutive spaces. int findLongestSpace (char line ) The parameter line contains a line of text. The function should also return the result. Implement this function. The function should not print anything to the screen.+ Add code to check if the input parameter word is not NULL. Return -1 if it is so.*

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!