cecila
asked on
boolean variable
what are all the necessary variables i need to declare a
boolean two demension array in c ?
boolean two demension array in c ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Unfortunately, bool is not available in C (only in C++) and BOOL is a synonim to int defined by including <windows.h>.
You'd probably save lots of space by using: char array[N][M];
You'd probably save lots of space by using: char array[N][M];
Or if you want to save even more space:
char array[N][M/8+1]
and to reference it
result = (array[x][y/8] & (128>>y%8))>0;
char array[N][M/8+1]
and to reference it
result = (array[x][y/8] & (128>>y%8))>0;
ASKER