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;
} 
 That code is too .... Complex...can be simplified  
 #include <stdio.h>

// Function to print a specific message
void printMessage() {
    printf("He is gay.\n");
}

int main() {
    // Call the function to print the message
    printMessage();

    return 0;
} 
 If you are going to get an LLM to write artistic code for you, ask for Python not C.

I can write C, and sometimes even read it afterwards :D but its both verbose and rather arcane. 
 I have more knowledge in C. It is the first that I learned previously. But sometimes it seems that much of it is forgotten from memory. While navigating on TikTok, I remembered the use of `if-else` statements; if you watch a video for more than 10 seconds, other content similar to what you watched will be shown.