QUESTION 5 (13 marks) Given logical representation of an array characters. char words [5] = { 'M', 'A', 'N', 'A'}; Write
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
QUESTION 5 (13 marks) Given logical representation of an array characters. char words [5] = { 'M', 'A', 'N', 'A'}; Write
QUESTION 5 (13 marks) Given logical representation of an array characters. char words [5] = { 'M', 'A', 'N', 'A'}; Write the program segment that do the following tasks: iv) Change value of index number 2 to 's'. v) Accept input from user with value 'K' and insert it to the last index. vi) Swap the value of index 0 with index number 2. vii) Change all the character using lowercase function. (3 Marks) (3 Marks) (4 Marks) (3 Marks)