Consider the following statements:
string str1 = "Gone with the wind";
string str2;After the statement str2 = str1.substr(5,4); executes, the value of str2 is "____".

A. Gone
B. with
C. the
D. wind

Answer: B

Computer Science & Information Technology

You might also like to view...

The part of the security policy that defines what company resources can be accessed from home is

A) The acceptable use part B) The physical access part C) The remote access part D) The emergency procedures part

Computer Science & Information Technology

Show how to return the store allocated by this statement to the heap manager for reallocation.

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

Computer Science & Information Technology