What is the output produced by the following code? (As always, you are to assume that the code is embedded in a correct and complete program.

Given the type definitions:
```
const int STRING_SIZE = 20;
struct ListNode
{
char item[STRING_SIZE];
int count;
ListNode * link;
};
```

```
ListNode * head = new ListNode;
strcpy( head->item, "Stop Light");
head->count = 10;
cout << (*head).item << endl;
cout << head->item << endl;
cout << (*head).count << endl;
cout << head->number << endl;
```


Stop Light
Stop Light
10
10

Computer Science & Information Technology

You might also like to view...

Which of the following statements is false?

a. In a multithreaded application, threads can be distributed across multiple processors (if available) so that multiple tasks execute in parallel and the application can operate more efficiently. b. The JVM creates threads to run a program and for housekeeping tasks such as garbage collection. c. Multithreading can increase performance only on multi-core systems. d. The vast majority of programmers should use existing collection classes and interfaces from the concurrency APIs that manage synchronization for you.

Computer Science & Information Technology

Assume a table has 100,000 rows and each row occupies 100 bytes. Disk pages are 4000 bytes and the worst case time to access a page is 20ms. Estimate the worst case time of doing an equality search on a candidate key under the following conditions

(a) An (unsorted) heap file with no index. (b) An unclustered B+ tree in which each entry occupies 20 bytes. (c) A clustered B+ tree.

Computer Science & Information Technology

What is the resulting router interface state when its connecting switchport has a duplex mismatch?

A) Up/up B) Up/up (disabled) C) Up/down D) Down/down

Computer Science & Information Technology

Which of the following is essential to allow information technology projects to be aligned with business goals?

a. The projects must deliver expected business results on time and within budget. b. The projects must embed accountability and internal controls in an organization. c. The projects must be delayed to achieve the required quality. d. The projects must go beyond the budget to maintain the quality.

Computer Science & Information Technology