C Puzzle Bookの有り難み5つ、C言語規格及びCコンパイラの特性を認識, error(21), coding(28)
https://qiita.com/kaizen_nagoya/items/d89a48c1536a02ecdec9
The C Puzzle Book
https://efrei.poupa.net/Programmation%20en%20C/Cours/The_C_Puzzle_Book.pdf
defs.h
// https://qiita.com/kaizen_nagoya/items/6d284651ac1244963bd9
//
#include <stdio.h>
#define PR(format, value) printf("value = %format\t",(value))
#define NL putchar("\n")
#define PRINT1(f,x1) PR(f,x1), NL
#define PRINT2(f,x1,x2) PR(f,x1), PRINT1(f,x2)
#define PRINT3(f, x1, x2, x3) PR(f,x1), PRINT2(f,x2,x3)
#define PRINT4(f,x1,x2, x3, x4) PR(f,x1), PRINT3(f,x2, x3,x4)
defs.h
// https://qiita.com/kaizen_nagoya/items/6d284651ac1244963bd9
// Type by Dr. Kiyoshi Ogawa
#include <stdio.h>
#include <stdlib.h>
#define PR(format, value) printf(#value" = %format\t",(value))
#define NL putchar("\n")
#define PRINT1(f,x1) PR(f,x1), NL
#define PRINT2(f,x1,x2) PR(f,x1), PRINT1(f,x2)
#define PRINT3(f, x1, x2, x3) PR(f,x1), PRINT2(f,x2,x3)
#define PRINT4(f,x1,x2, x3, x4) PR(f,x1), PRINT3(f,x2, x3,x4)