Is it not possible to use memset on an array of integers? I tried the following memset call and didn\'t get the correct integer values in the
memset
Why the division?
memset(arr, -1, sizeof(arr));
Your version, sizeof(arr)/sizeof(int), gives you the number of elements in the array.
sizeof(arr)/sizeof(int)