<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>developingskills1110</author_name>
  <author_url>https://blog.hatena.ne.jp/developingskills1110/</author_url>
  <blog_title>studies</blog_title>
  <blog_url>https://studies.hatenablog.com/</blog_url>
  <categories>
    <anon>C/C++</anon>
  </categories>
  <description>久しぶりの投稿はちょっと変な話。次のように、自分自身を参照するポインタを作ってみる。 #include &lt;stdio.h&gt; int main(void) { void *p = &amp;p; printf(&quot;%p\n&quot;, p); return 0; } 自分の環境では、普通にコンパイルが通る。 そして、実行するたびに結果が変わる（実行のたびに別のアドレスにpが配置される）。こんなプログラムは何の意味もないと思うかもしれないが、次のような場合はどうだろうか？ typedef struct List { char value; struct List *next; } List; static List…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fstudies.hatenablog.com%2Fentry%2F2017%2F03%2F12%2F212356&quot; title=&quot;void *p = &amp;amp;p : 自分自身を参照する初期化の問題 - studies&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-03-12 21:23:56</published>
  <title>void *p = &amp;p : 自分自身を参照する初期化の問題</title>
  <type>rich</type>
  <url>https://studies.hatenablog.com/entry/2017/03/12/212356</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
