Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Thread Closed: Off-topic

???
08/18/03 09:13
Read: times


 
#52771 - RE: initialize variable with binary value?
Responding to: ???'s previous message
JOHN SMITH wrote:
-------------------------------
char bin_code[3]={
0b1100110011,0b1111110011,0b1100111011};

"but compiler doasn't accept."

NO ones compiler will accept. char has a size of 8 bits only while you are trying to assign 10 bits to it.

try this


int bin_code[3]={
0b1100110011,0b1111110011,0b1100111011};

this will probably work



abhishek

List of 12 messages in thread
TopicAuthorDate
initialize variable with binary value?            01/01/70 00:00      
   RE: initialize variable with binary value?            01/01/70 00:00      
      RE: initialize variable with binary value?            01/01/70 00:00      
   RE: initialize variable with binary value?            01/01/70 00:00      
      Not in C!!!            01/01/70 00:00      
      RE: initialize variable with binary value?            01/01/70 00:00      
         RE: initialize variable with binary value?            01/01/70 00:00      
            RE: initialize variable with binary value?            01/01/70 00:00      
            RE: initialize variable with binary value?            01/01/70 00:00      
               RE: initialize variable with binary value?            01/01/70 00:00      
                  RE: initialize variable with binary value?            01/01/70 00:00      
                     RE: initialize variable with binary value?            01/01/70 00:00      

Back to Subject List