Question: Question No. 2. (CLO-3) (10 Marks) Write a C++ program that copies a char array/C-string str1 to another char array named str2. The copy should

 Question No. 2. (CLO-3) (10 Marks) Write a C++ program that

Question No. 2. (CLO-3) (10 Marks) Write a C++ program that copies a char array/C-string str1 to another char array named str2. The copy should be done character by character. While copying characters, upper-case characters should be converted to lowercase and the lower case input characters to uppercase. Use two pointers to point to the both source and destination strings. Note: you have to do this tasks using pointers. Question No. 3. (CLO-3) (10 Marks) Write a program that reads a 2-D array named Dynamite of 5 rows and 5 columns from user and finds the sum of squares of all elements in this array and also output the right diagonal and check which is maximum number in the right diagonal the matrix and output its location also

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!