LINUX.ORG.RU

История изменений

Исправление MOPKOBKA, (текущая версия) :

Есть удобный сайт https://en.cppreference.com/w/c/language/operator_comparison

If lhs and rhs are expressions of pointer type, they must be both pointers to objects of compatible types, except that qualifications of the pointed-to objects are ignored.

...

* pointers to members of the same union compare equal

...

all other pointer comparisons invoke undefined behavior

Исходная версия MOPKOBKA, :

Есть удобный сайт https://en.cppreference.com/w/c/language/operator_comparison

If lhs and rhs are expressions of pointer type, they must be both pointers to objects of compatible types, except that qualifications of the pointed-to objects are ignored.

* pointers to members of the same union compare equal