C++ (Qt)QWidget * w = 0;QGraphicsItem * e = 0;if (w == e) return 1;
C++ (Qt)bool eq = (c == b); // eq = truebool eq2 = ((void *) c == (void *) b); // eq2 = false
C++ (Qt)#include <stdio.h> struct A { int a;}; struct B { int b;}; struct C : public A, public B { int c;}; int main( void ){ C * c = new C; B * b = c; bool eq = (c == b); bool eq2 = ((void *) c == (void *) b); printf("eq = %d, eq2 = %d\n", int(eq), int(eq2)); return 0;}