If you have an upper limit for the second dimension, you can use sentinel values such as:
#include <stdio.h>
#define MAXCOLUMNS 20
#define VALUE {{0,1,2,-1},{2,3,4,-1},{0,0,0,0,1,-1},{-1}}
int main()
{
int v[][MAXCOLUMNS] = VALUE;
int x, y;
for (y = 0; v[y][0] != -1; y++)
for (x = 0; v[y][x] != -1; x++)
printf("[%d,%d] = %d\n", x, y, v[y][x]);
return 0;
}
, . , ?
: @BLUEPIXYs , , C ( ).