<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yohhoy</author_name>
  <author_url>https://blog.hatena.ne.jp/yohhoy/</author_url>
  <blog_title>yohhoyの日記</blog_title>
  <blog_url>https://yohhoy.hatenadiary.jp/</blog_url>
  <categories>
    <anon>C</anon>
    <anon>C2y</anon>
  </categories>
  <description>プログラミング言語Cの次期標準C2yでは、配列要素数を安全に取得する_Countof演算子が導入される。オペランドに配列型を要求すること以外は、構文規則的にsizeof演算子とほぼ同じ。 // C2y int fibs[] = { 1, 1, 2, 3, 5, 8, 13, 21 }; static_assert(_Countof(fibs) == 8); // OK // 標準ヘッダ&lt;stdcountof.h&gt;で定義されるマクロ利用すると // 小文字キーワード風に countof(fibs) と記述可能となる #include &lt;stdcountof.h&gt; static_assert(si…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20250520%2Fp1&quot; title=&quot;配列要素数の取得 in 標準C - yohhoyの日記&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>2025-05-20 00:00:00</published>
  <title>配列要素数の取得 in 標準C</title>
  <type>rich</type>
  <url>https://yohhoy.hatenadiary.jp/entry/20250520/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
