What is len2 as no, of columns supposed to mean, the columns are changing for every row. I also tried with linked list but got segmentation fault. Anyone help please?
Its not possible to get desired output from C. Try another language… If you set *len2=A, you will get
But its impossible to remove zeroes. They will have to edit the driver code. Error on their side Nothing we can do.