look dad, I'm a programmer!
>printf("Hello world\n");
Look dad, I'm a programmer!
I'm a kissless virgin
That you are.
See? Console output! Dad was wrong!
look dad, i'm gay!
look dad, i'm autistic!
.global _start
.data
string:
.ascii "Hello, world!\n"
string_length=.-string
.text
_start:
movq $1, %rax
movq $1, %rdi
movq $string, %rsi
movq $string_length, %rdx
syscall
movq $0x3c, %rax
xorq %rdi, %rdi
syscall
why do you need a function to print hello world?
also, he didn't even call it
Holy fuck
there must be main in cpp to even compile
Har har
quality bait 8/10
Have a (you)
user... I...
>not using puts
FYI summerfags
Why main() haves to return 0? Thats retarded
typedef struct OP
{
int isFaggot;
} OP;
OP* op = malloc(sizeof(OP));
op->isFaggot = 1;
Use studio.hd, user. It's better.
>return(n)
holy fuck
Hello, lads.
Reminder:
'' == '0' // false
0 == '' // true
0 == '0' // true
false == 'false' // false
false == '0' // true
false == undefined // false
false == null // false
null == undefined // true
' \t\r\n ' == 0 // true
...
write(1,"Hello World\n",14);
var greeting = "Hello World!";
for (var i = 0; i < greeting.length; i++) {
console.log(greeting[i]);
}
oh (you)
Me too user!
here you go
def main( argc, argv ):
print( "Hello, World" )
if __name__ == "__main__":
import sys
main( len( sys.argv ), sys.argv )
>Not being in on the joke
user.. I..
echo "hello world";
wew lad that was so hard
>his language doesn't have designated hello world printing package
>his language doesn't have a hello world abstract class factory
0 means no errors occurred.
Non-zero means some kind of error occurred.
Then you can take advantage of this later:
if myprogram
then
# actions if the program ran successfully
else
# actions if the program encountered an error
fi
Hello gay! I'm dad!
NOT STANDARD C REEEEEEEEEEEE
isn't it the opposite then?
>returning 0
(You)
++++++++++[>+++++++>++++++++++>+++>+.
8^)