Question: write the program in c++ Write a function with the following signature that, given a matrix of integers, builds a string with the entries of
write the program in c++
Write a function with the following signature that, given a matrix of integers, builds a string with the entries of that matrix appended in clockwise order. For instance, the 3x4 matrix below: 2, 3, 4,8 5, 7, 9, 12 1,0, 6, 10 would make the string 2, 3, 4, 8, 12, 10,6, 0, 1, 5, 7, 9. Your implementation is expected to be robust and production ready. void BuildStringFromMatrix(int* Matrix, int NumRows, int NumColumns, char* OutBuffer) // Your code goes here OutBuffer is guaranteed to be valid and large enough to hold all of the data
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
