Is it possible to create an array of bits with more than 100000000 elements? If so, how do I do this? I know that for a char array I can do this:
char* array;
array = (char*)malloc(100000000 * sizeof(char));
If I were to declare an array char array[100000000], I would get a segmentation error, since the maximum number of elements was exceeded, so I use malloc.
Is there something similar for a bit array?
source
share