{"id":312,"date":"2023-02-22T02:28:56","date_gmt":"2023-02-22T10:28:56","guid":{"rendered":"http:\/\/bitas.net.cn\/?page_id=312"},"modified":"2023-02-22T02:29:03","modified_gmt":"2023-02-22T10:29:03","slug":"110-2","status":"publish","type":"page","link":"http:\/\/bitas.net.cn\/index.php\/sourcecode\/110-2\/","title":{"rendered":"110 \u8bc6\u522b\u590d\u6742\u7684\u58f0\u660e"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>#include &lt;stdio.h>\n#include &lt;assert.h>\n\ntypedef struct tagT {\n    int a;\n} T;\n\nint f1(T *p) {\n    p->a++;\n    return 0;\n}\n\nint main(int argc, char *argv&#91;])\n{\n    T t = { 0 }, *pt = &amp;t; \n\n    typedef T *T01&#91;5];\n    T01 t01;\n    t01&#91;0] = pt; \n    t01&#91;0]->a++;\n    assert(t.a == 1); \n\n    typedef T *T02;\n    T02 t02 = &amp;t; \n    t02->a++;\n    assert(t.a == 2); \n\n    typedef T **T03;\n    T03 t03 = &amp;pt;\n    (*t03)->a++;\n    assert(t.a == 3); \n\n    typedef int (* T04)(T *); \n    T04 t04 = f1; \n    t04(pt);\n    assert(t.a == 4); \n\n    typedef int (* T05&#91;5])(T *); \n    T05 t05;\n    t05&#91;0] = f1; \n    t05&#91;0](pt);\n    assert(t.a == 5); \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-312","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/bitas.net.cn\/index.php\/wp-json\/wp\/v2\/pages\/312","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=312"}],"version-history":[{"count":1,"href":"http:\/\/bitas.net.cn\/index.php\/wp-json\/wp\/v2\/pages\/312\/revisions"}],"predecessor-version":[{"id":313,"href":"http:\/\/bitas.net.cn\/index.php\/wp-json\/wp\/v2\/pages\/312\/revisions\/313"}],"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=312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}