I am having big troubles representing a sparse matrix in C with a multi-list, as my university teacher asked.

For what I understood there are several kinds of lists:
- The main one contains a pointer to next row and column
- One for column and rows
- One of elements.
Any help on how to implement this would be greatly appreciated.
( I will explain how can you represent the picture if that is what are you asking )
From your picture I understand that you have 3 types of nodes and some rules:
height)
pointers, the colum value and the row value of the element and the
element)
Rules:
column element
to the b) element )
has a pointer to the b) element
colum
For each rule if you can’t apply you just skip it and leave that pointer null
Hope it helped.
You can create some custom linked lists and just apply the rules
Here you have a simple tutorial