Solved

Given the Type Definitions:
Const Int STRING_SIZE = 20;
Struct \quad

Question 22

Short Answer

Given the type definitions:
const int STRING_SIZE = 20;
struct ListNode
{
\quad char item[STRING_SIZE];
\quad int count;
\quad ListNode * link;
};
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.
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;

Correct Answer:

verifed

Verified

Stop Light...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions