Skip to content
RED SAG Skills
hardStudy question · answer published in Embedded C interview questions, so no pointsembedded-cundefined-behaviour

Shifting by 32

A mask helper is called with n = 32. What happens on a 32-bit target?

uint32_t mask_n(unsigned n) { return (1u << n) - 1u; }
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions