Tuesday, June 29, 2021

Re: C style in OpenBSD

heres a fun example i was an idiot to miss:

> Date: Tue, 29 Jun 2021 15:17:58 +0959
> From: Reuben ua Bríฤก <u5644051@anu.edu.au>

> ANSI 'K'&'R' is really just 'B' in disguise.

/* note the () around & are for ==, not ?: */
int main() { return ('K'&'R') == 'B' ? 0 : 1; }

No comments:

Post a Comment