This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

coufused by array and shift bit

Hi, The code is given below.

void CSToOut(void)
{
static unsigned char data bSimulate[8] ;
int I;

        for( I = 0 ;I < 8;I ++)
        {
                bSimulate[I] = 0x01 << I ;
                ComOutChar( bSimulate[I] );
        }
}


result: 00 00 00 00 00 00 00 00

why?

Parents Reply Children
No data