The last line is not required for a correct code but it's a very good habit to clear vagabonding pointers. This can save you from a lot of trouble.
Still the value 100 will be copied bytewise and hence works only for char arrays. The exception is 0, because four zero bytes are still the number 0 as an int. You can of course use any number that is a pattern cnosisting of four equal bytes.