You can use memset(Table,false,sizeof(Table))for this.it will work fine.
Here is your complete code
#include <iostream>
#include<cstring>
using namespace std;
const int dim = 2;
bool Table[dim][dim];
int main(){
memset(Table,true,sizeof(Table));
cout<<Table[1][0];
return 0;
}
source
share