This is definitely my problem area of C. Can anyone point me to a decent tutorial/faq on this? I can't seem to find one on this site but I may well be wrong!

My problem is essentially this:

I need to make an array of arrays (m of them) of different sizes - altho helpfully each array is one int less than the previous.

I get m from the user then use:

to make each array of a given size. I know this is a big mess ("parse error before int") but I can't find any help on getting around it.Code:int *tray[m]; for(i=0; i<N; i++) *tray[i]=(int*)calloc((N-i),sizeof(int));