Https://ide.codingblocks.com/#/s/31769

https://ide.codingblocks.com/#/s/31769

getting wrong answer on this question
Arrays-Wave print Column Wise

where it’s wrong?

The code is wrong. Read the question carefully.
You are printing row wise instead of columnwise.
For the input
4 4
11 12 13 14
21 22 23 24
31 32 33 34
41 42 43 44

Your output:
11, 12, 13, 14, 21, 22, 23, 24, 31, 32, 33, 34, 41, 42, 43, 44, END

But the correct output:
11, 21, 31, 41, 42, 32, 22, 12, 13, 23, 33, 43, 44, 34, 24, 14, END