c zero out array

C
memset(myarray, 0, sizeof(myarray));
Source

Also in C: