<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sulpsulpc</author_name>
  <author_url>https://blog.hatena.ne.jp/sulpsulpc/</author_url>
  <blog_title>じょ〜だんの日記</blog_title>
  <blog_url>https://sulpsulpc.hatenadiary.org/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>C++では、第2項と第3項の型が同じで共に左辺値であるなら条件演算式は、左辺値であることは、比較的よく知られていると思うが、 第2項と第3項が共に配列型 又は 関数型である場合、ポインタ型への変換は行われないのね。 完全に規格を見落としていた。 早速、 実験 #include &lt;stdio.h&gt; int foo(void); int bar(void); int main() { int a[10],b[10]; printf(&quot;%u\n&quot;, sizeof(1?a:b)); // C++ではsizeof(int[10])、Cではsizeof(int*)のはず printf(&quot;%u\n&quot;, si…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsulpsulpc.hatenadiary.org%2Fentry%2F20070927%2F1190904092&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>2007-09-27 23:41:32</published>
  <title>条件演算式の型</title>
  <type>rich</type>
  <url>https://sulpsulpc.hatenadiary.org/entry/20070927/1190904092</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
