Help Please

a = "First"
b = a[2] //does this not the value "r" to b ?

does this work on numerical values?
Can I grab more than one at a time?

I am working on a project that will output a 16 bit hex value to some hardware. But I must only send 8 bits(one half of the total 16 bits) to two separate ports. how can I do this.
b = a[2] will work if you have declared "a" as a character array ( char a[] = "first" )

splitting 16 bit value into two 8 bit parts should be easy.

1> Typecast the address as char*
2> Memcpy each byte to the required stream.
Topic archived. No new replies allowed.