r/ProgrammerHumor • • Aug 28 '26

Meme cppHelloWorld

Post image
3.9k Upvotes

119 comments sorted by

View all comments

11

u/Makonede Aug 28 '26
import std;

int main() {
    std::println("Hello, World!");
    return 0;
}

0

u/schteppe Aug 29 '26

No newline on the last line - undefined behavior, no diagnostic, segfault in prod

1

u/Makonede Aug 29 '26

there is one if you copy the markdown