I forgot () at the end of function call, but got no errors?

int btnPressed() {
    return digitalRead(12) == LOW;
}


void setup() {
    Serial.begin(115200);
    pinMode(12, INPUT);
    digitalWrite(12, HIGH);
}


void loop() {
    if (btnPressed) {                 // missing ()
        Serial.println("Pressed");
    }
    else {
        Serial.println("Not pressed");
    }
    delay(1000);
}

A function name on its own, i.e. without parentheses, represents the function address, not its return value.
Therefore in the code above the if(btnPressed) statement will always take the "then" route, as a function address is never zero. But more importantly, it will do that regardless of the pin state.