<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mocomei</author_name>
  <author_url>https://blog.hatena.ne.jp/mocomei/</author_url>
  <blog_title>365日コーディングブログ</blog_title>
  <blog_url>https://mocomei.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>お題 共用体を使って入力された短整数の個々のバイトの文字として表示する プログラム概要 短整数を画面から入力させ、個々のバイトを文字で表示する ソース #include &lt;stdio.h&gt; int main(void) { union u_type { char ch[2]; short int s; } var; printf(&quot;Please input short number: &quot;); scanf(&quot;%hd&quot;, &amp;var.s); printf(&quot;%c %c\n&quot;, var.ch[0], var.ch[1]); return 0; } 実行結果 Please input short num…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmocomei.hatenablog.com%2Fentry%2F2013%2F11%2F21%2F002257&quot; title=&quot;20131121【C言語】共用体を使って、入力された短整数の個々のバイトの文字として表示する - 365日コーディングブログ&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-11-21 00:22:57</published>
  <title>20131121【C言語】共用体を使って、入力された短整数の個々のバイトの文字として表示する</title>
  <type>rich</type>
  <url>https://mocomei.hatenablog.com/entry/2013/11/21/002257</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
