How to write an efficient C code(with less number of loops) for getting the following Sample input and output of a 2D (not necessarily square)matrix?

后端 未结 0 831
夕颜
夕颜 2020-11-27 21:57

Input:

1 2 3 4
5 8 9 10
4 5 8 11
7 5 3 1

Output:

7 5 3 1
4 5 8 11
5 8 9 10
1 2 3 4

A conventional logic would

相关标签:
回答
  • 消灭零回复
提交回复
热议问题