LoginSignup
7
0

More than 5 years have passed since last update.

C言語で「if (a == 1 && a == 2 && a == 3) を true」 にする

Last updated at Posted at 2018-01-23

流行り(2018/01/23)に乗って、C言語版を作ってみた。少しインチキしている。

#include <stdio.h>
#define a ++num
void main(void) {
  int num = 0;
  if (a == 1 && a == 2 && a == 3) puts("true");
}

こう言うのって、コロンブスのたまご的ですね。

7
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
0