memset array bool

//Array declaration
bool arr[10];

//To initialize all the elements to true

memset(arr,1,sizeof(arr));
UnderTaker