Question: Given logical representation of an array characters. char words [5] = {'M', 'A', 'N', 'A'}; Write the program segment that do the following tasks:
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.
Step by Step Solution
There are 3 Steps involved in it
include include for tolower function int main char words 5 ... View full answer
Get step-by-step solutions from verified subject matter experts
