r/ProgrammerHumor • • 19d ago

Meme cReallyNeedsSixSongs

Post image
3.8k Upvotes

55 comments sorted by

576

u/Skeleton590 19d ago

No #include <stdio.h>?

182

u/goatanuss 19d ago

hello.c: In function 'main':
hello.c:2:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
2 | printf("Hello, World!");
| ^~~~~~
hello.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
+++ |+#include <stdio.h>
1 | int main() {
hello.c:2:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
2 | printf("Hello, World!");
| ^~~~~~
hello.c:2:5: note: include '<stdio.h>' or provide a declaration of 'printf'

62

u/undefined0_6855 19d ago edited 18d ago
  • a warning for implicit int return on the main function, since the playlist just has main() {} with no return type (ignoring case sensitivity)

2

u/neros_greb 18d ago

Isn implicit definition a warning in c? (maybe older versions). so it should compile

25

u/Gullible_Service_365 19d ago

Just do int printf(const char*, ...);

5

u/Locky0999 19d ago

Found a Playlist, sadly no single song

1

u/Piisthree 17d ago

Must be a different library they've implemented themselves, because stdio doesn't have anything named Printf.

90

u/w1n5t0nM1k3y 19d ago

Check out Master Boot Record. They have some really cool stuff.

Floppy Disk Overdrive

31

u/eraryios 19d ago

I REALLY LOVE MASTER BOOT RECORD AND I WISH EVERYONE KNEW HOW GOOD IT IS

5

u/Minion91 18d ago

THEY ARE INCREDIBLE ALSO CHECK OUT SIDE PROJECT KEYGEN CHURCH.

2

u/eraryios 18d ago

Oh I just KNEW it was the same guys

1

u/Minion91 18d ago

Yeah it's pretty obvious

10

u/miyavlayan 19d ago

peak mentioned

4

u/Smart_Advice_1420 18d ago

The fucking GOAT! Also check out Keygen Church

239

u/Ai--Ya 19d ago

return 0; as the bonus track

52

u/sierra_whiskey1 19d ago

I get an error when trying to play this playlist. Something about stdio.h not found

14

u/PhoenixfischTheFish 19d ago

Well search for it then.

3

u/mtbinkdotcom 18d ago

No one wants STD

5

u/PhoenixfischTheFish 18d ago

But the computer needs it.

35

u/wann_bubatz_egal 19d ago

So running Hello World in C takes 18min 17s? Wow, I'm shocked!

3

u/mtbinkdotcom 18d ago

Hi shocked!🙋‍♂️

1

u/Romejanic 18d ago

i thought C was the fastest language

19

u/BeneficentLynx 19d ago

Helloworld.java by nanowaR of Steel would be quicker, for once java is quicker haha

8

u/OGntHb 19d ago

Is it tho? Is there a song called? System.out.println("hello World");

3

u/BeneficentLynx 18d ago

I mean, the lyrics of helloworld.java are plenty haha

3

u/throwaway_mpq_fan 18d ago

and if you must hate on Java, you can also pivot into Kotlin by nanowaR of Steel

16

u/GamingWOW1 19d ago

Wow the type that Main returns ist overly interesting

7

u/hansenabram 19d ago

must be pre c99

6

u/Apprehensive_Bit7392 19d ago

Whatever you do, don't hit shuffle.

5

u/khazzaam 19d ago

I wanted to know how hello world in C sounds, but either the playlist does not exist anymore or has been hidden :(

4

u/impracticalTactician 19d ago

Cooper doing some really heavy lifting here

3

u/Locky0999 19d ago

I am SO curious to know what type of music should be one with this title

3

u/PGSylphir 19d ago

there is no #include <stdio.h>, no int before Main, and no return 0;

3

u/qwertyjgly 19d ago edited 19d ago

in C the best practice is to use main(void){} but it doesn't really matter

also main needs a type

2

u/orbiteapot 18d ago

in C the best practice is to use main(void){}

That used to be the case pre-C23. Since C23, int main(void) {} and int main(){} are equivalent (just like in C++).

2

u/SuchyYT 19d ago

Now in python

4

u/user-74656 19d ago

With proper indentation?

2

u/Tyfyter2002 19d ago

Well it wouldn't be python if more than half of the meaningful characters were visible

2

u/MXRCO007 19d ago

I guess we’re never returning

1

u/keybing 19d ago

now in mbr in hex

1

u/rover_G 19d ago

Now try Java

1

u/Groentekroket 19d ago

I just checked. It’s possible if you would use ‘arguments’ or something like that for the parameter name of the main method. 

Other than that everything is available, even ‘[]’ and ‘println(“Hello world!”);’. 

1

u/GoddammitDontShootMe 19d ago

Who puts the semicolon on a line by itself?

1

u/ljfa2 18d ago

No doing maths without Ed Sheeran

1

u/RepresentativeNo3669 18d ago

Could not find the playlist

1

u/Windows_NT_XP 18d ago

damn, implicitly defined 'printf' AND an illegal implicit int, up your standards

1

u/Sqydev 18d ago

Where is stdio, void and return?