The following function cycles through a linked list and displays its contents. Line 3 can be replaced with ____. 1 void display(struct myStruct *contents)2 {3   while (contents != NULL)4   {5     printf("%-30s\n",contents->name, contents->phoneNum);6     contents = contents->nextaddr;7   }8 }

A. while (isValid(contents))
B. while (contents != EOF)
C. while (!contents)
D. while (contents != NIL)


Answer: C

Computer Science & Information Technology

You might also like to view...

__________ methodology focuses on the processes that take place within an information system.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

To access your ASPX page’s markup, click the ________ Button.

a) ASPX b) Code View c) HTML d) ASP e) None of the above.

Computer Science & Information Technology

Given the declaration float stock[5][3];

a. There would be storage space allocated for 5 rows of 3 columns. b. There would be storage space allocated for 3 rows of 5 columns. c. There would be no storage space allocated until data was stored in the array. d. There would be storage space allocated for 5 data items of type float. e. This would be an invalid declaration.

Computer Science & Information Technology

The DOS operating system allows ____ characters plus an optional period and 3-character extension as the maximum filename length.

a. 4 b. 8 c. 16 d. 32

Computer Science & Information Technology