169
you are viewing a single comment's thread
view the rest of the comments
[-] vapeloki@lemmy.world 39 points 3 months ago

std::endl is used in output streams in C++ to end the line, using the os specific line termination sequence, and flush the buffer.

The later one is a performance issue in many cases, why the use of "\n" is considered preferred

this post was submitted on 05 Apr 2025
169 points (100.0% liked)

Programmer Humor

37389 readers
50 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS