void *memset(void *dest, int c, size_t count)
The 3rd argument is the Number of characters or bytes in the array. How would you memset an array of bool
To set array of 11 bool elements to e.g. true by using memset:
memset
const int N = 11; bool arr[N]; memset(arr, 1, sizeof(bool) * N);