For this reason you might see many programmers use memset in order to zero something out in the middle of C89/90 or C++ the code.
I'd say that the proper way to do is still without memset but rather with something like.