{"id":284,"date":"2023-02-22T02:15:48","date_gmt":"2023-02-22T10:15:48","guid":{"rendered":"http:\/\/bitas.net.cn\/?page_id=284"},"modified":"2023-02-22T02:15:56","modified_gmt":"2023-02-22T10:15:56","slug":"098-2","status":"publish","type":"page","link":"http:\/\/bitas.net.cn\/index.php\/sourcecode\/098-2\/","title":{"rendered":"098 \u6570\u7ec4\u6307\u9488"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>#include &lt;stdio.h>\n#include &lt;assert.h>\n\ntypedef int R3&#91;3];\n\nint main(int argc, char *argv&#91;])\n{\n    int matrix&#91;2]&#91;3] = { \n        &#91;0]&#91;1] = 1, &#91;1]&#91;0] = 1, &#91;1]&#91;2] = 1 \n        };  \n    int *mp;\n    R3 *r3;\n    \/\/int (* r3)&#91;3];\n\n    mp = &amp;matrix&#91;0]&#91;0];\n    r3 = matrix;\n    printf(\"%10s: %p\\n\", \"mp\", mp);\n    printf(\"%10s: %p\\n\", \"r3\", r3);\n    printf(\"%10s: %p\\n\", \"mp+1\", mp+1);\n    printf(\"%10s: %p\\n\", \"r3+1\", r3+1);\n    \n    for (; r3 &lt; matrix+2; r3++) {\n        int i;\n        for (i = 0; i &lt; 3; i++) {\n            if ((*r3)&#91;i] == 0) (*r3)&#91;i] = 1;\n            else (*r3)&#91;i] = 0;\n        }   \n    }   \n\n    assert(matrix&#91;0]&#91;0] == 1); \n    assert(matrix&#91;0]&#91;1] == 0); \n    assert(matrix&#91;0]&#91;2] == 1); \n    assert(matrix&#91;1]&#91;0] == 0); \n    assert(matrix&#91;1]&#91;1] == 1); \n    assert(matrix&#91;1]&#91;2] == 0); \n\n    return 0;\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":127,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-284","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/bitas.net.cn\/index.php\/wp-json\/wp\/v2\/pages\/284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bitas.net.cn\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/bitas.net.cn\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/bitas.net.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/bitas.net.cn\/index.php\/wp-json\/wp\/v2\/comments?post=284"}],"version-history":[{"count":1,"href":"http:\/\/bitas.net.cn\/index.php\/wp-json\/wp\/v2\/pages\/284\/revisions"}],"predecessor-version":[{"id":285,"href":"http:\/\/bitas.net.cn\/index.php\/wp-json\/wp\/v2\/pages\/284\/revisions\/285"}],"up":[{"embeddable":true,"href":"http:\/\/bitas.net.cn\/index.php\/wp-json\/wp\/v2\/pages\/127"}],"wp:attachment":[{"href":"http:\/\/bitas.net.cn\/index.php\/wp-json\/wp\/v2\/media?parent=284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}