Ron Maupin
2
Q:

memset array bool

//Array declaration
bool arr[10];

//To initialize all the elements to true

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

New to Communities?

Join the community