Post #2104136
2026-03-31 16:36 UTC
@dtl @bellinghman @simontatham Until I realised that 0 in C/C++ is an octal, not a decimal constant, and as such is quite possibly the most used octal value in wide use that no one thinks about
Replies (1)
-
@schmerg@mas.to 2026-03-31 16:40
@dtl @bellinghman @simontatham AFAIK there's no way to express 0 as a decimal literal Hex 0x0 Binary 0b0 Octal 0 But no decimal literal representation https://en.cppreference.com/w/cpp/language/integer_literal.html