Question: Consider the following cstring. char word [5] = goat; 1. Write ch+ code to print the first two characters in the word array. (2 points)
Consider the following cstring. char word [5] = "goat"; 1. Write ch+ code to print the first two characters in the word array. (2 points) 2. Write c++ code to print the last two characters in the word array. (2 points) 3. Write the last character stored in the word array. (2 points) 4. What is the name and purpose of the "O' character? ( 2 points) 5. Write the line of code that imports the header file that is needed for us to use cstrings? (2 points)
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
