Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
yusijs12508y@filthyranter could also do print to make it identical with python (except semi colon)
-
@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 -
sam05928y@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...
-
cahva10158y<?='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) -
Grumpy28878y".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. -
grublle3988y@AboMahdi It's quite irresponsible having void main. I don't think ANSI allows that either.
-
vause4918y@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. -
@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.
Hello World in different languages
undefined