What's the most efficient way to print "hello world" in C?

What's the most efficient way to print "hello world" in C?

What do you mean by efficient?

I like maki because she reminds me of my first cousin. I have never found another anime character than can make me nut as quick and as much as her.

O(logn) time

#include

int main(int argc, char* argv[])
{
printf("fuck\n");
return 0;
}

...

by dressing up as maki and sucking my cock

Don't that petri dish slut on my board

Have you ever tried listening to pure audio as an erotic entertainment medium? Recently I've been checking out /r/GoneWildAudio on reddit, and that shit now has me nutting faster and more intense than 2d/3d ever did before. Shit's insane. Instead of focusing 100% on the visuals, this makes it feel more real as you're trying to relate, and kinda picture yourself with the person in audio. It gives it a more shocking "realness" factor.

I recommend anyone give it a shot.
/unblog

I literally just googled this. You fucking botnet mother fucker you!

On Linux probably calling the write syscall

...

I hope you get banned for avatarfagging, weeb.

...

...

const char *hw = "hello world";
fwrite(hw, 1, sizeof(hw), stdout);
fflush(stdout);

> not using puts

#include

int main(void)
{
printf("kys weeb.\n");
}

>printf
Bloated
>Also no code tags

hmmmmmmmmmmmmmmmmmmmmmm

okay I'll give it a go, thanks

Outsource the work to pajeets, wait two months while they tell you that everything's progressing well and to keep sending money, and finally get a program that doesn't run. Then, send that to an American programmer and tell him to finish it quickly as it's "90% finished". Since the broken code is so terrible, the programmer tosses it and writes a new program from scratch and delivers it, but since he took 10x longer than expected (as it was already "90% finished") vow to never give him work again, and to instead keep outsourcing work to pajeets.

t. every large corporation ever

>not just using the write syscall

>>Using sizeof() instead of a constant

#include
int main()
{
write(1, "Hello, World!\n", 14);
return 0;
}

I am Maki.

>implying any half decent compiler wont replace a sizeof to a constant char array with a constant

#include

void main()
{
cputs("hello world");
}

>itt: people who don't know the difference between syscalls and library functions

Your sizeof will return the size of a char* in your architecture. This won't print the full string until 128 bit processors come out, then it will print too much.

So you're half right. It'll replace it by a number without calling a function. Not by what you want.

Honestly, a compiler will turn the printf call into a puts call if it can.

write is not a part of C.

This will print "hello wo" on 64-bit platforms and "hell" on 32-bit platforms.

Write is definitely a part of C. In fact it's used by any libc you'll ever use and it's defined by POSIX.

Maki!
Maki!!
I love you Maki!!!

Maki is an impure slut who gets fucked by men all the time everyday

const int main[] = {
-443987883, 440, 113408, -1922629632,
4149, 899584, 84869120, 15544,
266023168, 1818576901, 1461743468, 1684828783,
-1017312735
};

oh thanks user. was lately craving for a good sexy voice. Pornstars' fake moans are always a turn off

Now this is a good thread.

>typing any line that begins with #include

FUCKING TRASH

5 cute facts about maki:

- She's a girl!
- She's a tomato!?
- I love her!!!!!
- Maki!!!!!!!!!!!

void main() {
system ("perl -E 'say \"Hello, World!\";'");}

win

Without standard library, of course.
#define syscall(a, D, S, d) __asm__ __volatile__("syscall" : : "a"(a), "D"(D), "S"(S), "d"(d))

void _start(void)
{
syscall(1, 1, "Hello, World", 6);
syscall(60, 0, 0, 0);
}

write(1,"Hello World",14);

If you're on Linux you can use vmsplice and have zero copy io. There isn't any faster way than literally zero copy.

#pragma message ("hello world")

PRINT hello world

>#pragma
windows babbies are not allowed on here. Pls go away

64-bit owo

Modern GCC versions support this too dumbass

But if you're that picky, here:
#warning "hello world"

>Modern
>using anything more bloated than gcc1.0
why?

"Hello World!" in C?
Don't you have a machine language monitor?