2D Array

Lesson

코딩도장 핵심요약: 2D Array 핵심요약

image

Example Code

Example

C_array2D_example.cpp

Exercise

Exercise 1

C_array2d_exercise.c

Create functions for

  • addMat(X, Y, Out, dim)

  • subtractMat(X, Y, Out, dim)

  • mulMat(X, Y, Out, dim)

  • transposeMat(X, Y, Out, dim)

Assume 3x3 matrix for this exercise. •Use float or double as the variable type

The size of matrices need to be fixed and declared priori.

Last updated

Was this helpful?