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