This is my code:
(num and mask represent 32-char long bit sequences)Code:char get_bits_squeeze(char num, char mask) { num = print32bits(num); mask = print32bits(mask); char activeBits; for (int i=0;i<32;i++) { if (mask[i]=='1') strcat(activeBits,num[i]); } return activeBits; }
I compile via gcc and I get this error:
referring to mask[i] and num[i], so how do I access the individual char at a given point?Code:error: subscripted value is neither array nor pointer error: subscripted value is neither array nor pointer



LinkBack URL
About LinkBacks


