<?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>お題 共用体を使ってintをlongに変換する プログラム概要 intとlong型を持つ共用体を用意し、int型のメンバに値を代入することで long型に変換する ソース #include &lt;stdio.h&gt; int main(void) { union u_type { int i; int long l; } num; /* l is cleard by 0 */ num.l = 0L; num.i = 100; printf(&quot;%ld\n&quot;, num.l); return 0; } 実行結果 100</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmocomei.hatenablog.com%2Fentry%2F2013%2F11%2F12%2F234346&quot; title=&quot;20131112【C言語】共用体を使ってintをlongに変換する - 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-12 23:43:46</published>
  <title>20131112【C言語】共用体を使ってintをlongに変換する</title>
  <type>rich</type>
  <url>https://mocomei.hatenablog.com/entry/2013/11/12/234346</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
