In C ( not C++, C+, or C#) Dynamic Memory Allocation 1.Revisit the matrix additi
ID: 3763837 • Letter: I
Question
In C ( not C++, C+, or C#) Dynamic Memory Allocation
1.Revisit the matrix addition function. Write the program so that it would not need to take a third pointer for the result matrix. Instead, have the function return a pointer to the results matrix. Provide space for the results matrix inside of the function through dynamic memory allocation.
2.Write a string concatenation function that takes two pointers to the strings to be concatenated and have the function return a pointer to the concatenated string. Again, provide the space for the result string through dynamic memory allocation.
Explanation / Answer
2. Program:
Sample output: