how to set an array to zero c code example Example: c zero out array memset(myarray, 0, sizeof(myarray));