19
Silvio
7y

Hello World in different languages

Comments
  • 11
    @Letmecode also int before main
  • 0
    You should see chef's hello world. What a true masterpiece.
  • 0
    @pxgamer Probably good practice if you're mixing PHP and HTML
  • 5
    Wrong. It's just

    Hello World!

    in PHP. Nothing more. It works.
  • 0
    @filthyranter could also do print to make it identical with python (except semi colon)
  • 1
    @filthyranter it depends bro.

    If on a server and it's a HTML file it doesn't know to run php segments without the <?php and if you don't close them the html goes into php it's a mess errors

    Plus I mean you get a sense of completeness
  • 1
    @vause care to share? :)
  • 0
    @Letmecode @grulle the return is not necessarily if you don't put a return type such as 'int' but if one doesn't use int it's better to indicate that it's a 'void' but it's not an obligation the compiler understands...
  • 2
    <?='Hello world!' ?>

    And before anyone bitches about using short tags, its a non issue (who the hell puts xml file in a php file anyway)
  • 2
    ".model small"

    Ah, assembly code from the harsh, old days when we had segmented address space on x86.

    Segment address space was introduced by aliens, seeking to destroy out planet. Or maybe it was the devil who was behind it. Either way, it was evil in it's purest form.
  • 0
    @Letmecode
    @grublle
    He can just put void before tge int and it is solved
  • 0
    Be aware, that the linux asm needs moce lines of code (but its more comfi)
  • 0
    @AboMahdi It's quite irresponsible having void main. I don't think ANSI allows that either.
  • 3
    @bioDan

    Hello World Souffle.

    This recipe prints the immortal words "Hello world!", in a basically brute force way. It also makes a lot of food for one person.

    Ingredients.
    72 g haricot beans
    101 eggs
    108 g lard
    111 cups oil
    32 zucchinis
    119 ml water
    114 g red salmon
    100 g dijon mustard
    33 potatoes

    Method.
    Put potatoes into the mixing bowl. Put dijon mustard into the mixing bowl. Put lard into the mixing bowl. Put red salmon into the mixing bowl. Put oil into the mixing bowl. Put water into the mixing bowl. Put zucchinis into the mixing bowl. Put oil into the mixing bowl. Put lard into the mixing bowl. Put lard into the mixing bowl. Put eggs into the mixing bowl. Put haricot beans into the mixing bowl. Liquefy contents of the mixing bowl. Pour contents of the mixing bowl into the baking dish.

    Serves 1.
  • 2
    @vause that's more like "goodbye world" 101 eggs holy fuck
  • 1
    @vause error 404, troll not found
  • 2
    What about malbolge? ^^
  • 2
    @grublle C actually allows implicit return int and implicit function type int. The C code is valid and would definitely compile, though warnings are to be expected.
  • 0
    @TylerDDevRant heard about it on elementary, What about bash? echo 'hello world'
Add Comment