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...

The IF function is an example of a text function in Microsoft Excel.?

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

If a computer is performing slowly due to file fragmentation, what Windows tool can be utilized to rearrange fragments?

A. Computer Management B. Defrag and Optimization tool C. Defraggler D. Disk Cleanup

Computer Science & Information Technology

The Cisco PIX line of products is best described as which of the following?

A. software firewall B. PC with firewall installed C. firewall appliance D. VPN gateway

Computer Science & Information Technology

Password Meter is a software utility that helps a user evaluate the strength of passwords and recommends changes to strengthen passwords.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology