memesearch
Unreachable Code Says Hello World

Unreachable Code Says Hello World

Download Find similar pictures
Text on the meme
#include <iostream> int main() { while (1) ; } void unreachable() { std::cout << "Hello world!" << std::endl; } This code will never do anything! $ clang++ loop.cpp -O1 -Wall -o loop $ ./loop Hello world!
What it means

A C++ program contains an infinite loop followed by an unreachable function that prints “Hello world!”. The joke is that the supposedly unreachable code runs anyway, mocking a compiler or programmer discovering unexpected behavior.

Objects
Tags
Sources
Type
image
Size
800×627 · 61.3 KiB
Mood
саркастичный
Language
en
Added