#include #include #include using namespace std; int main(int argc, char *argv[]) { int x = 1; int y = 22; // Mysteriöses Konstrukt, das wir nicht kennen // Auf alle Fälle jedoch: cout << *ptr << endl; wird crashen! int *ptr = 0; // Funktioniert nicht! if ((x > *ptr) && (y < 5)) { cout << "Hello" << endl; } // Funktioniert! if ((y < 5) && (x > *ptr)) { cout << "Hello" << endl; } system("PAUSE"); return EXIT_SUCCESS; }