Guest User

Untitled

a guest
Oct 19th, 2017
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. void transpose(int col, int row, int arr[col][row], int result[row][col]) {
  2. for (int i=0; i < row; i++)
  3. for (int j=0; j < col; j++){
  4. result[j][i] = arr[i][j];
  5. }
  6. }
  7.  
  8. +----------------+---------+---------+----------------+---------+---------+
  9. | Operator | I | Fij | Operand | J | F2j |
  10. +----------------+---------+---------+----------------+---------+---------+
  11. | ; | 1 | 5 | col | 1 | 3 |
  12. | = | 2 | 3 | row | 2 | 3 |
  13. | , | 3 | 3 | arr | 3 | 1 |
  14. | () or {} | 4 | 5 | result | 4 | 1 |
  15. | [] | 5 | 8 | i | 5 | 3 |
  16. | Void transpose | 6 | 1 | j | 6 | 3 |
  17. | For | 7 | 2 | | | |
  18. |----------------+---------+---------+--------------------------+---------|
  19. | | | 27 | | 14 |
  20. +----------------+---------+---------+--------------------------+---------+
Add Comment
Please, Sign In to add comment