Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void transpose(int col, int row, int arr[col][row], int result[row][col]) {
- for (int i=0; i < row; i++)
- for (int j=0; j < col; j++){
- result[j][i] = arr[i][j];
- }
- }
- +----------------+---------+---------+----------------+---------+---------+
- | Operator | I | Fij | Operand | J | F2j |
- +----------------+---------+---------+----------------+---------+---------+
- | ; | 1 | 5 | col | 1 | 3 |
- | = | 2 | 3 | row | 2 | 3 |
- | , | 3 | 3 | arr | 3 | 1 |
- | () or {} | 4 | 5 | result | 4 | 1 |
- | [] | 5 | 8 | i | 5 | 3 |
- | Void transpose | 6 | 1 | j | 6 | 3 |
- | For | 7 | 2 | | | |
- |----------------+---------+---------+--------------------------+---------|
- | | | 27 | | 14 |
- +----------------+---------+---------+--------------------------+---------+
Add Comment
Please, Sign In to add comment