Question 5
Back to Exercise
Is a plain char signed?
- A Always signed
- B Implementation-defined – it varies between platforms Correct
- C Always unsigned
- D It has no sign at all
Correct Answer: Option B
char is signed on x86 and Apple ARM but unsigned on most ARM Linux systems. That is why bytes should be handled as unsigned char or uint8_t.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!