<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>peroon</author_name>
  <author_url>https://blog.hatena.ne.jp/peroon/</author_url>
  <blog_title>perogram</blog_title>
  <blog_url>https://perogram.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>// そもそもできない string s = &quot;aaa&quot; + &quot;bbb&quot;; // できるけど、sには謎の文字列が入る。&quot;a&quot;は入らない string s = &quot;&quot;+'a'; 「リテラル文字列はそのアドレスを返す」を意識すると、2つ目のコードは&quot;&quot;でどこか領域が確保され、+'a'によってアドレスがオフセットされ、そのアドレスがsに入るのだろう。なのでsをcoutなどで確認すると謎の文字列が出力される 参考 ロベールのＣ＋＋教室 - 第７７章 リテラル文字列 - http://www7b.biglobe.ne.jp/~robe/cpphtml/html01/cpp01077.html Python…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fperogram.hateblo.jp%2Fentry%2F2020%2F06%2F18%2F005629&quot; title=&quot;文字列の落とし穴 C++ 「リテラル文字列はそのアドレスを返す」 - perogram&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>https://cdn-ak.f.st-hatena.com/images/fotolife/p/peroon/20200618/20200618005614.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-06-18 00:56:29</published>
  <title>文字列の落とし穴 C++ 「リテラル文字列はそのアドレスを返す」</title>
  <type>rich</type>
  <url>https://perogram.hateblo.jp/entry/2020/06/18/005629</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
