<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>eel3</author_name>
  <author_url>https://blog.hatena.ne.jp/eel3/</author_url>
  <blog_title>新・日々録 by TRASH BOX@Eel</blog_title>
  <blog_url>https://eel3.hatenablog.com/</blog_url>
  <categories>
    <anon>日記</anon>
    <anon>プログラミング</anon>
    <anon>C言語</anon>
    <anon>C++</anon>
  </categories>
  <description>関数の仮引数（整数型）にて、プロトタイプ宣言にはconst修飾子がついておらず、関数本体にはconst修飾子がついていたとする。この状態でコンパイルしてリンクしてみたらどうなるだろうか？ コンパイル／リンク時にエラーになるのか、警告が出るのか、スルーしてしまうのか？C言語及びC++の規格に基づく「期待される動作」は分からないのだが、手元のコンパイラ（Xcode 4.6.1付属のclangとgcc、Visual Studio 2005、Visual Studio 2010）ではスルーすることが多いようだ。例えばこんなC言語のソースがあったとする。 /* xxxx.c */ #include &lt;s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Feel3.hatenablog.com%2Fentry%2F20131215%2F1387113483&quot; title=&quot;プロトタイプ宣言の仮引数にconst修飾子がなかった話 - 新・日々録 by TRASH BOX@Eel&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>2013-12-15 22:18:03</published>
  <title>プロトタイプ宣言の仮引数にconst修飾子がなかった話</title>
  <type>rich</type>
  <url>https://eel3.hatenablog.com/entry/20131215/1387113483</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
