Oddbean new post about | logout
 #include <stdio.h>

// Function to print a specific message
void printMessage(int error) {
    if (error == 1) {
        printf("He is gay.\n");
    } else {
        printf("Error not recognized.\n");
    }
}

int main() {
    int error;

    // Example usage of the function
    error = 1;
    printMessage(error); // Prints: He is gay.

    error = 2;
    printMessage(error); // Prints: Error not recognized.

    return 0;
}