Question: PROBLEM 1 (a) Write a declaration to store the string This is a test in an array named char strtest [ 14 ] . Then

PROBLEM 1 (a) Write a declaration to store the string "This is a test" in an array named char strtest [ 14 ] . Then write a for statement to display the string in reverse order: tset a si sihT" (b) Write a while loop to display the string as stored. The expression while (str test [i] != ' \0' ) can be used. [5 points] 5 points] (c) Write a for statement to display only the array elements t, e, s, andt. 5 points] e) Define a vector of strings using the atrteat [) aray using the statement vector
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
