Link to home
Start Free TrialLog in
Avatar of cecila
cecila

asked on

boolean variable

what are all the necessary variables i need to declare a
boolean  two demension array in c ?  
Avatar of cecila
cecila

ASKER

Edited text of question
ASKER CERTIFIED SOLUTION
Avatar of trillo
trillo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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];
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;