Question.5
A developer writes:
auto timeout = 100;
Is this good embedded C++ practice?
Select Answer
Yes -- auto reduces code clutter
No -- the type of 100 (int) is obvious; writing uint32_t timeout = 100 is clearer and shows the intended width explicitly
Yes -- auto prevents type mismatch errors
No -- auto is not allowed for simple types