Q:

initialize two dimensional array of pointer elements using memset

I have a these structures definitions
typedef struct my_s {
   int x;
   int y;
} my_T;

typedef struct your_s {
    my_T * x;
} your_T;

your_T array[MAX_COL][MAX_ROW];

To initialize the array's pointer to NULL, can I do:
memset (array, 0, sizeof(array))

this does not look right to me.

A:

easiest is
your_T array[MAX_COL][MAX_ROW] = {{{0}}};

