<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ikaro1192</author_name>
  <author_url>https://blog.hatena.ne.jp/ikaro1192/</author_url>
  <blog_title>まどろみの思考空間</blog_title>
  <blog_url>https://hogespace.hatenablog.jp/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>サークルで以下のようなC++のコード(一部改変。)が話題になった int hoge=-1; if (hoge&lt;=strlen(&quot;hoge&quot;)){ std::cout&lt;&lt;&quot;Hoge&quot;&lt;&lt;std::endl; }else{ std::cout&lt;&lt;&quot;Bar&quot;&lt;&lt;std::endl; } 実行してみればわかると思うが、else節の方が実行されてしまう。なぜだろうか? 少し情報科学(といえない程度のものだが)をかじった普通のプログラマならすぐに符号ビットの問題であることに気づくだろう。ましてや二年もかけてCをみっちり勉強した情報系学部のそれもコンピュータ系サークルの人ならきっと即答なはずだ。皮肉はさてお…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhogespace.hatenablog.jp%2Fentry%2F2012%2F04%2F28%2F102010&quot; title=&quot;intとunsigned int のキャスト検証 - まどろみの思考空間&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>2012-04-28 10:20:10</published>
  <title>intとunsigned int のキャスト検証</title>
  <type>rich</type>
  <url>https://hogespace.hatenablog.jp/entry/2012/04/28/102010</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
