{"id":3880,"date":"2021-01-04T14:18:56","date_gmt":"2021-01-04T05:18:56","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=3880"},"modified":"2021-01-10T22:32:40","modified_gmt":"2021-01-10T13:32:40","slug":"c-%e3%82%b0%e3%83%ad%e3%83%bc%e3%83%90%e3%83%ab%e5%a4%89%e6%95%b0%e3%81%ae%e5%ae%a3%e8%a8%80%e3%81%a8%e5%ae%9a%e7%be%a9","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/3880","title":{"rendered":"[C] \u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u306e\u5ba3\u8a00\u3068\u5b9a\u7fa9"},"content":{"rendered":"<h3>(1) \u5916\u90e8\u5b9a\u7fa9 \/ external definition<\/h3>\n<p>\u5b9a\u7fa9\u3068\u521d\u671f\u5316<\/p>\n<pre class=\"lang:c decode:true \" >int x = 0;\r\n\r\nint main(void) {\r\n  \/* \u4e2d\u7565 *\/\r\n}<\/pre>\n<h3>(2) \u5916\u90e8\u5ba3\u8a00 \/ extern declaration<\/h3>\n<p>\u7ffb\u8a33\u5358\u4f4d\u5916\uff08\u30d5\u30a1\u30a4\u30eb\u306e\u5916\uff09\u3067\u5b9a\u7fa9\u3057\u305f\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u3092\u53c2\u7167\u3059\u308b\u3002\u30e1\u30e2\u30ea\u306f\u5272\u308a\u5f53\u3066\u306a\u3044\u3002<\/p>\n<pre class=\"lang:c decode:true \" >extern int x;\r\n\r\nint main(void) {\r\n  \/* \u4e2d\u7565 *\/\r\n}<\/pre>\n<h3>(3) \u4eee\u5b9a\u7fa9 \/ tentative definition<\/h3>\n<p>\u3069\u3053\u304b\u306b\u5916\u90e8\u5b9a\u7fa9\u304c\u3042\u308c\u3070\u5916\u90e8\u5ba3\u8a00\u3068\u3057\u3066\u3075\u308b\u307e\u3044\u3001\u306a\u3051\u308c\u3070\u5916\u90e8\u5b9a\u7fa9\u3068\u3057\u3066\u3075\u308b\u307e\u3046\u3002<br \/>\u3057\u305f\u304c\u3063\u3066\u540c\u3058\u540d\u524d\u306e\u4eee\u5b9a\u7fa9\u304c\u8907\u6570\u5b58\u5728\u3057\u3066\u3082\u3001\u3072\u3068\u3064\u306e\u30e1\u30e2\u30ea\u9818\u57df\u3092\u53c2\u7167\u3059\u308b\u3002<\/p>\n<p><pre class=\"lang:c decode:true \" >int x;\r\n\r\nint main(void) {\r\n  \/* \u4e2d\u7565 *\/\r\n}<\/pre>\n<p>\u4e0a\u8a18\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3060\u3051\u3067\u306f\u300e\u5b9a\u7fa9\u300f\u3067\u3042\u308b\u304b\u300e\u5ba3\u8a00\u300f\u3067\u3042\u308b\u304b\u78ba\u5b9a\u3067\u304d\u306a\u3044\u3002<\/p>\n<p><!-- http:\/\/www.cc.kyoto-su.ac.jp\/~hxm\/cstext\/prog06.html --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>(1) \u5916\u90e8\u5b9a\u7fa9 \/ external definition \u5b9a\u7fa9\u3068\u521d\u671f\u5316 int x = 0; int main(void) { \/* \u4e2d\u7565 *\/ } (2) \u5916\u90e8\u5ba3\u8a00 \/ extern declaration \u7ffb\u8a33\u5358 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[80],"class_list":["post-3880","post","type-post","status-publish","format-standard","hentry","category-memo","tag-c"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/3880","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=3880"}],"version-history":[{"count":9,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/3880\/revisions"}],"predecessor-version":[{"id":3926,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/3880\/revisions\/3926"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=3880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=3880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=3880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}