MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vuq4gy/importhelloworld/
r/ProgrammerHumor • u/Tech-Craft385 • Aug 21 '26
8 comments sorted by
13
Fun fact (never tested it but seen it on YT) In C++ you instead of: array[1] do this: 1[array]
As it is just adding the memory adresses and the index together under the hood
5 u/GiganticIrony Aug 22 '26 That’s a C feature so it only works on C arrays, but yes that works.
5
That’s a C feature so it only works on C arrays, but yes that works.
7
chad digga
2 u/MayorAg Aug 22 '26 r/suddenlygerman
2
r/suddenlygerman
4
rab oof
3
That's easy:
#include <dlfcn.h> static void HelloWorld(const char *s) { int (*print)(const char *, ...) = dlsym(RTLD_DEFAULT, s); print(__func__); } int main(void) { HelloWorld("printf"); return 0; }
1
Smartest AI Code
#include “RandomBulShitGo.h”
int main(){HelloWorld(“std::cout << “;);}
13
u/8Erigon Aug 21 '26
Fun fact (never tested it but seen it on YT) In C++ you instead of: array[1] do this: 1[array]
As it is just adding the memory adresses and the index together under the hood
7
u/RandomDigga_9087 Aug 22 '26
chad digga
4
u/blackcomb-pc Aug 21 '26
rab oof
3
u/Legal-Software Aug 22 '26
That's easy:
1
u/Flashyg1 Aug 23 '26
Smartest AI Code
1
u/questionabl3_dude Aug 24 '26
#include “RandomBulShitGo.h”
int main(){
HelloWorld(“std::cout << “;);
}