• 0 Posts
  • 8 Comments
Joined 3 years ago
cake
Cake day: June 11th, 2023

help-circle


  • Dumhuvud@programming.devtomemes@lemmy.worldFuck
    link
    fedilink
    English
    arrow-up
    10
    ·
    3 days 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.