MCQs > IT & Programming > C++ > Best way to implement mathematical matrix operation such as plus, minus and multiply with C++? A- Define matrix operation functions like below. Matrix Matrix :: pls(Matrix mat1, Matrix mat2); Matrix Matrix :: min(Matrix mat1, Matrix mat2); Matrix Matrix :: mlt(Matrix mat1, Matrix mat2); B- Override operators like below Matrix Matrix :: operator +(Matrix m2) Matrix Matrix :: operator -(Matrix m2) Matrix Matrix :: operator *(Matrix m2)

C++ MCQs

Which of the following is the better way to implement mathematical matrix operation such as plus, minus and multiply with C++? A- Define matrix operation functions like below. Matrix Matrix :: pls(Matrix mat1, Matrix mat2); Matrix Matrix :: min(Matrix mat1, Matrix mat2); Matrix Matrix :: mlt(Matrix mat1, Matrix mat2); B- Override operators like below Matrix Matrix :: operator +(Matrix m2) Matrix Matrix :: operator -(Matrix m2) Matrix Matrix :: operator *(Matrix m2)

Answer

Correct Answer: B

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it