<\/path> \n<\/svg> <\/p>\n\u300a\u4ee3\u7801\u5927\u5168\u300b\u5efa\u8bae\u5728\u53d8\u91cf\u5b9a\u4e49\u7684\u65f6\u5019\u8fdb\u884c\u521d\u59cb\u5316\uff0c\u4f46\u662f\u5f88\u591a\u4eba\uff0c\u7279\u522b\u662f\u65b0\u4eba\u5bf9\u7ed3\u6784\u4f53\u6216\u8005\u7ed3\u6784\u4f53\u6570\u7ec4\u5b9a\u4e49\u662f\u4e00\u822c\u4e0d\u4f1a\u521d\u59cb\u5316\uff0c\u6216\u8005\u4e0d\u77e5\u9053\u600e\u4e48\u521d\u59cb\u5316\u3002<\/p>\n
1\u3001\u521d\u59cb\u5316<\/p>\n
typedef struct _TEST_T {
\n
int i;
char c[10];
}TEST_T;<\/p>\n
TEST_T gst = {1, \u201c12345\u201d};\/\/\u53ef\u4ee5\u521d\u59cb\u5316\uff0c\u8bbe\u7f6ei\u4e3a1\uff0cs\u4e3a\u4e00\u4e2a\u5b57\u7b26\u4e32.<\/p>\n
TEST_T gst = {1};\/\/\u521d\u59cb\u5316\u4e2a\u6570\u5c11\u4e8e\u5b9e\u9645\u4e2a\u6570\u65f6\uff0c\u53ea\u521d\u59cb\u5316\u524d\u9762\u7684\u6210\u5458\u3002<\/p>\n
TEST_Tgst = {.c=\u201c12345\u201d};\/\/\u6709\u9009\u62e9\u7684\u521d\u59cb\u5316\u6210\u5458\u3002<\/p>\n
2\u3001\u590d\u5408\u5b57\u9762\u91cf\u3002<\/p>\n
gst = (TEST_T){122, \u201c1256\u201d};\/\/\u8fd9\u662f\u4e00\u4e2a\u8d4b\u503c\u8bed\u53e5\uff0c\u4e5f\u53ef\u4ee5\u4f5c\u4e3a\u521d\u59cb\u5316\u3002\u53ef\u4ee5\u51fa\u73b0\u5728\u7a0b\u5e8f\u7684\u4efb\u4f55\u5730\u65b9\u3002<\/p>\n
\u5f53\u7136\u4e5f\u53ef\u4ee5\u4f7f\u7528\u590d\u5408\u5b57\u9762\u91cf\u6765\u521d\u59cb\u5316\uff1a<\/p>\n
gst = (TEST_T){.i=122, .c=\u201c123\u201d};<\/p>\n
3\u3001\u7ed3\u6784\u4f53\u6570\u7ec4<\/p>\n
\u53ef\u4ee5\u7528\u591a\u4e2a\u5927\u62ec\u53f7\u62ec\u8d77\u6765\uff1a<\/p>\n
TEST_T gst[10] = {
\n {},{},{},{}}<\/p>\n
\u4e5f\u53ef\u4ee5\u521d\u59cb\u5316\u5176\u4e2d\u7684\u4e00\u4e2a\u5143\u7d20\uff1a<\/p>\n
TEST_T gst[10] = {[2]={}, [3]={}}<\/p>\n
\u4e5f\u53ef\u4ee5\u4f7f\u7528\u590d\u5408\u5b57\u9762\u91cf\uff1a<\/p>\n
TEST_T gst[10] = {[2].i=0, [3].i={}}<\/p>\n
\u4e3a\u4ec0\u4e48\u8981\u521d\u59cb\u5316\uff1a<\/p>\n
1\u3001\u5bf9\u5c40\u90e8\u53d8\u91cf\u521d\u59cb\u5316\u53ef\u4ee5\u9632\u6b62\u968f\u673a\u503c\u4ea7\u751f\u7684\u5371\u5bb3\u3002<\/p>\n
2\u3001\u5bf9\u5168\u5c40\u53d8\u91cf\u521d\u59cb\u5316\u53ef\u4ee5\u544a\u8bc9\u7f16\u8bd1\u5668\uff0c\u8fd9\u662f\u4e00\u4e2a\u5b9a\u4e49\uff0c\u800c\u4e0d\u662f\u4e00\u4e2a\u58f0\u660e\u3002\uff08\u5982\u679c\u4e24\u4e2ac\u4e2d\u6709\u76f8\u540c\u7684\u5168\u5c40\u53d8\u91cf\u5b9a\u4e49\uff0c\u4e14\u6ca1\u6709\u521d\u59cb\u5316\uff0c\u7f16\u8bd1\u5668\u4f1a\u8ba4\u4e3a\u7b2c\u4e8c\u4e2a\u662f\u58f0\u660e\u800c\u4e0d\u662f\u5b9a\u4e49\u3002\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"\u7ed3\u6784\u4f53\u6570\u7ec4\u521d\u59cb\u5316\u300a\u4ee3\u7801\u5927\u5168\u300b\u5efa\u8bae\u5728\u53d8\u91cf\u5b9a\u4e49\u7684\u65f6\u5019\u8fdb\u884c\u521d\u59cb\u5316\uff0c\u4f46\u662f\u5f88\u591a\u4eba\uff0c\u7279\u522b\u662f\u65b0\u4eba\u5bf9\u7ed3\u6784\u4f53\u6216\u8005\u7ed3\u6784\u4f53\u6570\u7ec4\u5b9a\u4e49\u662f\u4e00\u822c\u4e0d...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[82],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/321"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=321"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/321\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}