ii) Given TWO (2) cstring variables, w1 and w2 initialized with character-strings as in Figure 1.
Figure 1
Write C++ statements to declare and initialize w1 and w2.
(5 Marks)
ii.
Write C++ statement to check whether w1 or w2 comes out first in alphabetical order. Display the word.
(5 Marks)
iii.
Write C++ statement to put w2 at the end of w1.
(4 Marks)
iv.
Write C++ statement to display the length of character-string w1.
(4 Marks)