<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>derwind</author_name>
  <author_url>https://blog.hatena.ne.jp/derwind/</author_url>
  <blog_title>らんだむな記憶</blog_title>
  <blog_url>https://randommemory.hatenablog.com/</blog_url>
  <categories>
    <anon>C/C++</anon>
    <anon>Python</anon>
  </categories>
  <description>値渡しとか、参照渡しとか参照の値渡しとか色々あって、「Javaは参照の値渡しです」とか色々説明があるが、どうも参照渡しと参照の値渡しについてすっきりしなかった。 が、【参照の「値渡し」】と読むのではなく、【「参照の値」渡し】と読めばすっきりする気がしてきた。&quot;参照の値&quot; とは何だと言うと、C/C++での表現を借りるなら &quot;ポインタ&quot; とか &quot;変数のアドレス(を格納する変数)&quot; といったことか。なので高級言語では隠蔽されているポインタの概念を持ち出せるのであれば【「ポインタ」渡し】と読み替えると随分理解しやすくなる気がする。 値渡し void hoge(int val /*仮引数*/) { pr…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2015%2F08%2F01%2F162329&quot; title=&quot;参照の値渡し - らんだむな記憶&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>2015-08-01 16:23:29</published>
  <title>参照の値渡し</title>
  <type>rich</type>
  <url>https://randommemory.hatenablog.com/entry/2015/08/01/162329</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
