Which character has a bit representation of all zeroes?
For context, I'm wondering how to get a bit array of all zeroes and new to c/c++
unsigned char** result = (unsigned char**) malloc(sizeof(unsigned char)
* rows);
for (int i = 0 ; i < rows ; i++) {
result[i] = (unsigned char *) malloc(sizeof(unsigned char) * cols);
memset(result[i], 0, sizeof(unsigned char) * cols);
}
When I then try to print the bit representation (using c & 128, c & 64, i still get bits that are set)
For example: (for rows =3 and cols = 2)
00100000 00110111
00000000 00000000
00000000 00000000