My struct array has 5 slots
struct router* router[5];
Lets say there are elements inside them, and then i make
router[3] = NULL;
Is it possible to rearrange the array so that the element in router[4] moves up to router[3], router[5] moves to router[4] etc.?
memmove.route[3] = router[4]; router[4] = NULL;. Or please clarify your question if you are really trying to ask something different.NULLentries anyway, you might consider doing just that, and leaveNULLin the middle of your array.router[5]element asrouter[4]is the last valid element in the array.