Is sizeof(*ptr) undefined behavior when pointing to invalid memory?

前端 未结 6 1605
我在风中等你
我在风中等你 2020-11-30 04:21

We all know that dereferencing an null pointer or a pointer to unallocated memory invokes undefined behaviour.

But what is the rule when used within an expression pa

6条回答
提交回复
热议问题