• Dumhuvud@programming.dev
    link
    fedilink
    English
    arrow-up
    9
    ·
    24 hours ago

    It’s rather trivial to translate Python to C:

    $ cat << EOF > ./shitpost.c && gcc -O2 -o ./shitpost ./shitpost.c && ./shitpost
    #include <stdlib.h>
    
    int main(int argc, char** argv) {
        system("python3 -c \\"print(\\\\\\"Hello, World!\\\\\\")\\"");
        return 0;
    }
    EOF
    Hello, World!
    

    My C is a bit rusty though, sorry.