Assume that word is a variable of type string that has been assigned a value. Write an expression whose value is a string consisting of the first three characters of the value of word. So if the value of word were “dystopia” the expression’s value would be “dys”.

Assume that word is a variable of type string that has been assigned a value. Write an expression whose value is a string consisting of the first three characters of the value of word. So if the value of word were “dystopia” the expression’s value would be “dys”.

LANGUAGE: C++

CHALLENGE:

Assume that word is a variable of type string that has been assigned a value. Write an expression whose value is a string consisting of the first three characters of the value of word. So if the value of word were “dystopia” the expression’s value would be “dys”.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level