Answers for "memset array bool"

C++
0

memset array bool

//Array declaration
bool arr[10];

//To initialize all the elements to true

memset(arr,1,sizeof(arr));
Posted by: Guest on September-12-2020

Browse Popular Code Answers by Language