C example: reserve element order in array