C Update Array Length Js