Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [bitshift]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers

Confusion on bit shifting

I am trying to read-in two separate, 3 byte messages over CAN, add them together, and send back out over CAN, on a CANBED V1 which uses a Leonardo. My confusion is using bit shifting. If I attempt to ...
Greg Smith's user avatar
0 votes
1 answer

Why is char being "extended" to an int?

I know I'm missing something so simple here, but I can't figure it out. If I do char letter = 'A'; then letter = letter << 8, letter = 0, as one should expect, since we are shifting the bits &...
AJ_Smoothie's user avatar