Question: In C programming please, thank you. Problem 1: For the first problem, you write a function named addBtoA2D(...) which takes two 2D arrays and their
In C programming please, thank you.

Problem 1: For the first problem, you write a function named addBtoA2D(...) which takes two 2D arrays and their dimension as input and update the value of the first array with the sum of this value and corresponding value in the second array. Example input case: Arrl = [[1,2,3], [3,4,5], [2,3,4]] Arr2 = [[2,2,4], [1,4,6], [1,3,3]] After calling the addBtoA2d (..) values of the arrays should be as following, Arrl = [[3,4,7], [4,8,11], [3,6,7]] Arr2 = [[2,2,4], [1,4,6], (1,3,3]] The dimension of the both arrays should be same, otherwise element wise sum is not possible. Hence, take two input from user first Rand C, which means both 2D arrays Arr1 and Arr2 should be of size R by C. Then take the input from the user for each array using nested looping. Finally call the written function addBtoA2D(..) with the arrays and dimension parameters. Problem 2: Write a function named reverseText(..) which takes a string input as a character pointer and modify the string such that it becomes reversed string. Example input case: Str1 = "hello world" After calling reverseText(..) Str1 should contains "dirow olleh" Str1 = "refer" After calling reverseText(..) Str1 should contains "refer" Str 1 = "race car" After calling reverseText(..) Str1 should contains "rac ecar" Problem 3: Write a function to swap two integer variable. Take two input integer A and B in the main, call the swap function and print the value of A and B after the call. See if the swap operation inside the swap function is in effect at the main. If not what's the reason? How can you code this such that swap is effective in the main Example input: A = 12, B=13 Call swap(A,B) Print values of A and B in main. It should output 13 for A and 12 for B. ** Think about call by value vs call by reference concept
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
