Question: Write a statement to initialize a string strl to Melaka Berwibawa 2018. [3 marks) (d) Given a partial code for the function convertstr()in Figure Q4(a),

Write a statement to initialize a string strl to Melaka Berwibawa 2018. [3 marks) (d) Given a partial code for the function convertstr()in Figure Q4(a), which is used to convert all the uppercase letters to lowercase letters, and vice-versa void convertstr (char *mystr) { int length; int i; //complete the code here! } Figure Q4(d) Complete the program code. [8 marks] e . Based on Question 4(e) and Question 4(a), produce a complete C program which: Display the initial contents of the string stri, Convert all the uppercase letters to the lowercase letters, Convert all the lowercase letters to the uppercase letters, Display the modified contents of the stri. [8 marks]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
