<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>seto-san</author_name>
  <author_url>https://blog.hatena.ne.jp/seto-san/</author_url>
  <blog_title>せとっちの備忘録（技術系）</blog_title>
  <blog_url>https://seto-san.hatenadiary.org/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>いやー基本ですが、使わないと忘れてしまいますね。 っていうか、PHPとか何でも渡せすぎなんだよ！ C系の言語で関数に配列を渡す方法です。 関数には単純な変数しか渡せない C系の言語は関数に単純な変数しか渡せません。 配列が渡せないのです。 じゃあどうするか。そうです、ポインタを渡します。 構造体はメモリ領域の節約だったり、そっちんが楽っていう 意味でポインタを渡しますが、配列の場合は単純に渡せないから です。 配列名は配列の開始アドレス 例えば、 int a[10]; こんな風に宣言した配列へのポインタは a になります。このaには配列aの先頭のアドレスが入っています。 つまり、 int a[…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fseto-san.hatenadiary.org%2Fentry%2F20090623%2F1245716483&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>2009-06-23 09:21:23</published>
  <title>関数に配列を渡す</title>
  <type>rich</type>
  <url>https://seto-san.hatenadiary.org/entry/20090623/1245716483</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
