No discussion yet
Be the first to start the discussion.
Select Answer
reading is 0 + offset
Undefined behavior — dereferencing NULL is a crash or hard fault on most MCUs
NULL
reading is NULL + offset
The compiler optimizes the NULL dereference away