<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>javascripter</author_name>
  <author_url>https://blog.hatena.ne.jp/javascripter/</author_url>
  <blog_title>素人がプログラミングを勉強していたブログ</blog_title>
  <blog_url>https://javascripter.hatenablog.com/</blog_url>
  <categories>
    <anon>c</anon>
  </categories>
  <description>sizeof arrayで、array全体のバイト数を取得して、個々の配列の要素のバイト数で割る。 配列の中身はどれも同じ型だから、[0]のバイト数と、他の要素のバイト数は同じ。 #include &lt;stdio.h&gt; int main(void){ int array[42] = {0}; int array_size = sizeof array / sizeof array[0]; printf(&quot;size of array: %d\n&quot;,array_size); return 0; } 参考： 「はじめてのC++」技術評論社</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjavascripter.hatenablog.com%2Fentry%2F20080830%2F1220061736&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>2008-08-30 11:02:16</published>
  <title>配列のサイズの取得</title>
  <type>rich</type>
  <url>https://javascripter.hatenablog.com/entry/20080830/1220061736</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
