LearnFrenzy
Sign in Take a free test

Data Types · Data Types MCQ · Question 5

Is plain char signed or unsigned in C? Answer, explanation & discussion

  • MCQ
  • Medium
  • 0 comments
  • Answer explained
  • Moderated community
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!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links