0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

storage class 1: file, The C Puzzle book

Posted at

職業訓練
https://qiita.com/kaizen_nagoya/items/95368b63fa21d64271ec

Programmer, Day 6
https://qiita.com/kaizen_nagoya/items/632d8f191268e88eb86a

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 "The C Puzzle Book"
https://qiita.com/kaizen_nagoya/items/6d284651ac1244963bd9

sc1.c
#include "defs.h"

int i = 0;

int main()
{
        auto int i = 1;
        PRINT1(d, i);         // (1)
        {
                int i = 2;
                PRINT1(d, i);     // (2)
                {
                        i += 1;
                        PRINT1(d, i); // (3)
                }
                PRINT1(d, i);     // (4)
        }
        PRINT1(d, i);         // (5)
}

/*
nagai@compB05:~/Conpairu$ ./a.out
i = 1
i = 2
i = 3
i = 3
i = 1
*/
bash
$ gcc sc1.c
$ ./a.out
i = 1
i = 2
i = 3
i = 3
i = 1
0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?