{"id":7161,"date":"2016-07-01T19:58:19","date_gmt":"2016-07-01T10:58:19","guid":{"rendered":"http:\/\/www.webcyou.com\/?p=7161"},"modified":"2016-07-10T20:17:08","modified_gmt":"2016-07-10T11:17:08","slug":"c%e8%a8%80%e8%aa%9e%e3%81%ae%e5%9f%ba%e7%a4%8e%e3%83%bb%e5%9f%ba%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/www.webcyou.com\/?p=7161","title":{"rendered":"C\u8a00\u8a9e\u306e\u57fa\u790e\u30fb\u57fa\u672c"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/c-lan.png\" alt=\"c-lan\" width=\"600\" height=\"197\" class=\"alignnone size-full wp-image-7269\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/c-lan.png 600w, https:\/\/www.webcyou.com\/wp-content\/uploads\/c-lan-300x99.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>C\u8a00\u8a9e\u306e\u57fa\u790e\u30fb\u57fa\u672c\u3092\u3064\u3089\u3064\u3089\u3068\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u30a8\u30b9\u30b1\u30fc\u30d7\u30b7\u30fc\u30b1\u30f3\u30b9<\/h4>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><strong>\u30a8\u30b9\u30b1\u30fc\u30d7\u30b7\u30fc\u30b1\u30f3\u30b9<\/strong><\/td>\n<td style=\"text-align: center;\"><strong>\u8a73\u7d30<\/strong><\/td>\n<\/tr>\n<tr>\n<td>\u00a5a<\/td>\n<td>\u8b66\u544a\u97f3<\/td>\n<\/tr>\n<tr>\n<td>\u00a5b<\/td>\n<td>\u30d0\u30c3\u30af\u30b9\u30da\u30fc\u30b9<\/td>\n<\/tr>\n<tr>\n<td>\u00a5t<\/td>\n<td>\u6c34\u5e73\u30bf\u30d6<\/td>\n<\/tr>\n<tr>\n<td>\u00a5v<\/td>\n<td>\u5782\u76f4\u30bf\u30d6<\/td>\n<\/tr>\n<tr>\n<td>\u00a5n<\/td>\n<td>\u6539\u884c<\/td>\n<\/tr>\n<tr>\n<td>\u00a5f<\/td>\n<td>\u6539\u30da\u30fc\u30b8<\/td>\n<\/tr>\n<tr>\n<td>\u00a5r<\/td>\n<td>\u5fa9\u5e30<\/td>\n<\/tr>\n<tr>\n<td>\u00a5&#8217;<\/td>\n<td>&#8216;<\/td>\n<\/tr>\n<tr>\n<td>\u00a5&#8221;<\/td>\n<td>&#8220;<\/td>\n<\/tr>\n<tr>\n<td>\u00a5\u00a5<\/td>\n<td>\u00a5<\/td>\n<\/tr>\n<tr>\n<td>\u00a5?<\/td>\n<td>?<\/td>\n<\/tr>\n<tr>\n<td>\u00a5\u25ef\u25ef\u25ef<\/td>\n<td>\u00a08\u9032\u6570\u25ef\u25ef\u25ef\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u6301\u3064\u6587\u5b57\uff08\u25ef\u306f0\u301c7\u306e\u6570\u5b57\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u00a0\u00a5xhh<\/td>\n<td>16\u9032\u6570hh\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u6301\u3064\u6587\u5b57 \uff08h\u306f0\u301c9\u306e\u6570\u5b57\u3068A\u301cF\u306e\u82f1\u5b57\uff09<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h4>2\u9032\u6570\u30018\u9032\u6570\u300116\u9032\u6570<\/h4>\n<p><strong>\u53c2\u7167\u8868<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><strong>10\u9032\u6570<\/strong><\/td>\n<td style=\"text-align: center;\"><strong>2\u9032\u6570<\/strong><\/td>\n<td style=\"text-align: center;\"><strong>8\u9032\u6570<\/strong><\/td>\n<td style=\"text-align: center;\"><strong>16\u9032\u6570<\/strong><\/td>\n<\/tr>\n<tr>\n<td>0<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>1<\/td>\n<td>1<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>10<\/td>\n<td>2<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>11<\/td>\n<td>3<\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>100<\/td>\n<td>4<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>101<\/td>\n<td>5<\/td>\n<td>5<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>110<\/td>\n<td>6<\/td>\n<td>6<\/td>\n<\/tr>\n<tr>\n<td>7<\/td>\n<td>111<\/td>\n<td>7<\/td>\n<td>7<\/td>\n<\/tr>\n<tr>\n<td>8<\/td>\n<td>1000<\/td>\n<td>10<\/td>\n<td>8<\/td>\n<\/tr>\n<tr>\n<td>9<\/td>\n<td>1001<\/td>\n<td>11<\/td>\n<td>9<\/td>\n<\/tr>\n<tr>\n<td>10<\/td>\n<td>1010<\/td>\n<td>12<\/td>\n<td>A<\/td>\n<\/tr>\n<tr>\n<td>11<\/td>\n<td>1011<\/td>\n<td>13<\/td>\n<td>B<\/td>\n<\/tr>\n<tr>\n<td>12<\/td>\n<td>1100<\/td>\n<td>14<\/td>\n<td>C<\/td>\n<\/tr>\n<tr>\n<td>13<\/td>\n<td>1101<\/td>\n<td>15<\/td>\n<td>D<\/td>\n<\/tr>\n<tr>\n<td>14<\/td>\n<td>1110<\/td>\n<td>16<\/td>\n<td>E<\/td>\n<\/tr>\n<tr>\n<td>15<\/td>\n<td>1111<\/td>\n<td>17<\/td>\n<td>F<\/td>\n<\/tr>\n<tr>\n<td>16<\/td>\n<td>10000<\/td>\n<td>20<\/td>\n<td>10<\/td>\n<\/tr>\n<tr>\n<td>17<\/td>\n<td>10001<\/td>\n<td>21<\/td>\n<td>11<\/td>\n<\/tr>\n<tr>\n<td>18<\/td>\n<td>10010<\/td>\n<td>22<\/td>\n<td>12<\/td>\n<\/tr>\n<tr>\n<td>19<\/td>\n<td>10011<\/td>\n<td>23<\/td>\n<td>13<\/td>\n<\/tr>\n<tr>\n<td>20<\/td>\n<td>10100<\/td>\n<td>24<\/td>\n<td>14<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h4>\u578b<\/h4>\n<p><strong>\u57fa\u672c\u578b<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><strong>\u7a2e\u985e<\/strong><\/td>\n<td style=\"text-align: center;\"><strong>\u540d\u524d<\/strong><\/td>\n<td style=\"text-align: center;\"><strong>\u30b5\u30a4\u30ba\u4f8b<\/strong><\/td>\n<td style=\"text-align: center;\"><strong>\u8a18\u61b6\u3067\u304d\u308b\u5024\u306e\u7bc4\u56f2\u4f8b<\/strong><\/td>\n<\/tr>\n<tr>\n<td><strong>\u6587\u5b57\u578b<\/strong><\/td>\n<td>char<\/td>\n<td>1\u30d0\u30a4\u30c8<\/td>\n<td>\u82f1\u6570\u5b571\u6587\u5b57 -128\u301c127<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>unsigned char<\/td>\n<td>1\u30d0\u30a4\u30c8<\/td>\n<td>\u82f1\u6570\u5b571\u6587\u5b57\uff08\u7b26\u53f7\u306a\u3057\uff090 ~ 255<\/td>\n<\/tr>\n<tr>\n<td><strong>\u6574\u6570\u578b<\/strong><\/td>\n<td>short int<\/td>\n<td>2\u30d0\u30a4\u30c8<\/td>\n<td>\u6574\u6570 -32768 ~ 32767<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>unsigned\u00a0short int<\/td>\n<td>2\u30d0\u30a4\u30c8<\/td>\n<td>\u6574\u6570\uff08\u7b26\u53f7\u306a\u3057\uff090 ~ 65535<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>int<\/td>\n<td>4\u30d0\u30a4\u30c8<\/td>\n<td>\u6574\u6570 -2147483648 ~ 2147483647<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>unsigned int<\/td>\n<td>4\u30d0\u30a4\u30c8<\/td>\n<td>\u6574\u6570\uff08\u7b26\u53f7\u306a\u3057\uff090 ~ 4294967295<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>long int<\/td>\n<td>4\u30d0\u30a4\u30c8<\/td>\n<td>\u9577\u6574\u6570-2147483648 ~ 2147483647<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>unsigned\u00a0long int<\/td>\n<td>4\u30d0\u30a4\u30c8<\/td>\n<td>\u9577\u6574\u6570\uff08\u7b26\u53f7\u306a\u3057\uff090 ~ 4294967295<\/td>\n<\/tr>\n<tr>\n<td><strong>\u6d6e\u52d5\u5c0f\u6570\u70b9\u578b<\/strong><\/td>\n<td>float<\/td>\n<td>4\u30d0\u30a4\u30c8<\/td>\n<td>\u5358\u7cbe\u5ea6\u00a0\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570 3.4E-38 ~ 3.4E+38<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>double<\/td>\n<td>8\u30d0\u30a4\u30c8<\/td>\n<td>\u500d\u7cbe\u5ea6\u00a0\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570 1.7E-308 ~1.7E+308<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>long\u00a0double<\/td>\n<td>8\u30d0\u30a4\u30c8<\/td>\n<td>\u00a0\u62e1\u5f35\u500d\u7cbe\u5ea6\u00a0\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\u00a01.7E-308 ~1.7E+308<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>\u30d3\u30c3\u30c8\u3068\u30d0\u30a4\u30c8<\/h4>\n<p>2\u9032\u6570\u306e1\u6841\u5206\u306f\u300c<strong>\u30d3\u30c3\u30c8<\/strong>\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><strong>1\u30d3\u30c3\u30c8<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">0 or 1<\/pre>\n<p>2\u9032\u6570\u306e8\u6841\u306e\u6570\u5024\u306f\u300c\u30d0\u30a4\u30c8\u300d\u3068\u306a\u308a\u307e\u3059<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">00101110<\/pre>\n<p>1\u30d0\u30a4\u30c8\u3067\u306f\u3001<span style=\"line-height: 1.5;\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/ql-cache\/quicklatex.com-abb8fc6f61ba9bbc5b8862acfdfcf9e5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#36;&#36;&#50;&#94;&#56;&#61;&#50;&#53;&#54;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"68\" style=\"vertical-align: 0px;\"\/><\/span><\/p>\n<p>\u306e\u5024\u3092\u8868\u3059\u4e8b\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u300c2\u30d0\u30a4\u30c8\u306eshort int\u578b\u306e\u5024\u300d\u306f\u3001\u6b21\u306e\u69d8\u306a2\u9032\u657016\u6841\u3068\u306a\u308a<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">0000000000000011<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/ql-cache\/quicklatex.com-25edb5258c1c0aea5c0fd121c27d6af1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#36;&#36;&#50;&#94;&#49;&#54;&#61;&#54;&#53;&#53;&#51;&#54;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"94\" style=\"vertical-align: 0px;\"\/><span style=\"line-height: 1.5;\">\u3068\u304a\u308a\u306e\u5024\u3092\u8868\u3059\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"line-height: 1.5;\">short int\u306e\u4f8b\u3060\u3068\u3001\u4ee5\u4e0b\u306e\u69d8\u306b\u306a\u308b\u3002<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><strong>2\u9032\u6570<\/strong><\/td>\n<td style=\"text-align: center;\"><strong>10\u9032\u6570<\/strong><\/td>\n<\/tr>\n<tr>\n<td>0000000000000000<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>0000000000000001<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>0000000000000010<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>&#8230;<\/td>\n<td>&#8230;<\/td>\n<\/tr>\n<tr>\n<td>0111111111111111<\/td>\n<td>32767<\/td>\n<\/tr>\n<tr>\n<td>1000000000000000<\/td>\n<td>-32368<\/td>\n<\/tr>\n<tr>\n<td>1000000000000001<\/td>\n<td>-32367<\/td>\n<\/tr>\n<tr>\n<td>&#8230;<\/td>\n<td>&#8230;<\/td>\n<\/tr>\n<tr>\n<td>111111111111111<\/td>\n<td>-1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"line-height: 1.5;\">\u5148\u982d\u306e1\u30d3\u30c3\u30c8\u5206\u304c\u6570\u5024\u306e\u6b63\u8ca0\u3092\u8868\u3057\u3066\u3044\u308b\u3002<\/span><\/p>\n<p><span style=\"line-height: 1.5;\">unsigned short int\u578b\u306e\u5834\u5408\u306f\u8ca0\u306e\u6570\u5024\u304c\u306a\u3044\u306e\u3067\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3068\u306a\u308b\u3002<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><strong>2\u9032\u6570<\/strong><\/td>\n<td style=\"text-align: center;\"><strong>10\u9032\u6570<\/strong><\/td>\n<\/tr>\n<tr>\n<td>0000000000000000<\/td>\n<td>0<\/td>\n<\/tr>\n<tr>\n<td>0000000000000001<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>0000000000000010<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>&#8230;<\/td>\n<td>&#8230;<\/td>\n<\/tr>\n<tr>\n<td>111111111111111<\/td>\n<td>65535<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h4>\u6570\u5024\u5165\u529b<\/h4>\n<p>scanf<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">scanf(\"\u5909\u6570\u4ed5\u69d8\", &amp;amp;amp;amp;amp;amp;\u5909\u6570)<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u30ad\u30fc\u30dc\u30fc\u30c9\u304b\u3089\u5165\u529b\u4f8b<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">#include &lt;stdio.h&gt;\r\n\r\nint main(void)\r\n{\r\n  int num;\r\n  printf(&quot;\u6574\u6570\u3092\u5165\u529b\u3002 \u00a5n&quot;);\r\n  scanf(&quot;%d&quot;, &amp;amp;num);\r\n  printf(&quot;%d\u304c\u5165\u529b\u3055\u308c\u305f\u3002 \u00a5n&quot;, num);\r\n\r\n  return 0;\r\n}<\/pre>\n<h5>\u5c0f\u6570<\/h5>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">scanf(\"%lf\", &num);\r\nprintf(\"%f\u304c\u5165\u529b\u3055\u308c\u305f\u3002 \u00a5n\", num);<\/pre>\n<h5>\u6587\u5b57\u3092\u5165\u529b<\/h5>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">getchar()<\/pre>\n<p>\u5165\u529b\u4f8b:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">#include &lt;stdio.h&gt;\r\n\r\nint main(void)\r\n{\r\n  char ch;\r\n  printf(&quot;\u6587\u5b57\u3092\u5165\u529b\u3002\uff08\u82f1\u6570\u5b57\uff09 \u00a5n&quot;);\r\n  ch = getchar();\r\n  printf(&quot;%c\u304c\u5165\u529b\u3055\u308c\u305f\u3002 \u00a5n&quot;, ch);\r\n  \r\n  return 0;\r\n}<\/pre>\n<p>getchar()\u306f\u6a19\u6e96\u5165\u529b\uff08standard input\uff09<\/p>\n<h4>\u6f14\u7b97\u5b50<\/h4>\n<p><strong>\u30fb\u6f14\u7b97\u5b50<\/strong>\uff08\u6f14\u7b97\u3059\u308b\u3082\u306e: operator\uff09<\/p>\n<p><strong>\u30fb\u30aa\u30da\u30e9\u30f3\u30c9<\/strong>\uff08\u6f14\u7b97\u306e\u5bfe\u8c61:operand\uff09<\/p>\n<table>\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><strong>\u8a18\u53f7<\/strong><\/td>\n<td style=\"text-align: center;\"><strong>\u540d\u524d<\/strong><\/td>\n<td style=\"text-align: center;\"><strong>\u8a18\u53f7<\/strong><\/td>\n<td style=\"text-align: center;\"><strong>\u540d\u524d<\/strong><\/td>\n<\/tr>\n<tr>\n<td>+<\/td>\n<td>\u52a0\u7b97<\/td>\n<td>&gt;=<\/td>\n<td>\u4ee5\u4e0a<\/td>\n<\/tr>\n<tr>\n<td>&#8211;<\/td>\n<td>\u6e1b\u7b97<\/td>\n<td>&lt;<\/td>\n<td>\u672a\u6e80<\/td>\n<\/tr>\n<tr>\n<td>*<\/td>\n<td>\u4e57\u7b97<\/td>\n<td>&lt;=<\/td>\n<td>\u4ee5\u4e0b<\/td>\n<\/tr>\n<tr>\n<td>\/<\/td>\n<td>\u9664\u7b97<\/td>\n<td>==<\/td>\n<td>\u7b49\u4fa1<\/td>\n<\/tr>\n<tr>\n<td>%<\/td>\n<td>\u5270\u4f59<\/td>\n<td>!=<\/td>\n<td>\u975e\u7b49\u4fa1<\/td>\n<\/tr>\n<tr>\n<td>+<\/td>\n<td>\u5358\u9805+<\/td>\n<td>!<\/td>\n<td>\u8ad6\u7406\u5426\u5b9a<\/td>\n<\/tr>\n<tr>\n<td>&#8211;<\/td>\n<td>\u5358\u9805-<\/td>\n<td>&amp;&amp;<\/td>\n<td>\u8ad6\u7406\u7a4d<\/td>\n<\/tr>\n<tr>\n<td>~<\/td>\n<td>\u88dc\u6570<\/td>\n<td>||<\/td>\n<td>\u8ad6\u7406\u548c<\/td>\n<\/tr>\n<tr>\n<td>&amp;<\/td>\n<td>\u30d3\u30c3\u30c8\u8ad6\u7406\u7a4d<\/td>\n<td>*<\/td>\n<td>\u9593\u63a5\u53c2\u7167<\/td>\n<\/tr>\n<tr>\n<td>|<\/td>\n<td>\u30d3\u30c3\u30c8\u8ad6\u7406\u548c<\/td>\n<td>,<\/td>\n<td>\u9806\u6b21<\/td>\n<\/tr>\n<tr>\n<td>^<\/td>\n<td>\u30d3\u30c3\u30c8\u6392\u4ed6\u7684\u8ad6\u7406\u548c<\/td>\n<td>( )<\/td>\n<td>\u95a2\u6570\u547c\u3073\u51fa\u3057<\/td>\n<\/tr>\n<tr>\n<td>=<\/td>\n<td>\u4ee3\u5165<\/td>\n<td>( )<\/td>\n<td>\u30ad\u30e3\u30b9\u30c8<\/td>\n<\/tr>\n<tr>\n<td>&lt;&lt;<\/td>\n<td>\u5de6\u30b7\u30d5\u30c8<\/td>\n<td>[ ]<\/td>\n<td>\u914d\u5217\u6dfb\u5b57<\/td>\n<\/tr>\n<tr>\n<td>&gt;&gt;<\/td>\n<td>\u53f3\u30b7\u30d5\u30c8<\/td>\n<td>.<\/td>\n<td>\u30e1\u30f3\u30d0\u53c2\u7167\uff08\u30c9\u30c3\u30c8\uff09<\/td>\n<\/tr>\n<tr>\n<td>++<\/td>\n<td>\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8<\/td>\n<td>-&gt;<\/td>\n<td>\u30e1\u30f3\u30d0\u9593\u63a5\u53c2\u7167\uff08\u30a2\u30ed\u30fc\uff09<\/td>\n<\/tr>\n<tr>\n<td>&#8212;<\/td>\n<td>\u30c7\u30af\u30ea\u30e1\u30f3\u30c8<\/td>\n<td>? :<\/td>\n<td>\u6761\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>&gt;<\/td>\n<td>\u3088\u308a\u5927\u304d\u3044<\/td>\n<td>sizeof<\/td>\n<td>\u30b5\u30a4\u30ba<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u30fb\u30c7\u30af\u30ea\u30e1\u30f3\u30c8<\/h4>\n<p><strong>\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u6f14\u7b97\u5b50<\/strong>\uff08increment operator\uff09<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">a++<\/pre>\n<p>\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\u6f14\u7b97\u5b50\uff08decrement operator\uff09<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">b--<\/pre>\n<p>&nbsp;<\/p>\n<h5>\u524d\u7f6e\u3068\u5f8c\u7f6e<\/h5>\n<p><strong>\u524d\u7f6e<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">++a<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">#include &lt;stdio.h&gt;\r\n\r\nint main(void)\r\n{\r\n  int a = 0;\r\n  int b\u00a0= 0;\r\n  b = ++a;\r\n  printf(&quot;\u4ee3\u5165\u524d\u306b\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3002b\u306e\u5024\u306f%d\u3067\u3059\u3002 \u00a5n&quot;, b);\r\n\r\n  return 0;\r\n}<\/pre>\n<p><strong>result<\/strong><\/p>\n<p>\u4ee3\u5165\u524d\u306b\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3002b\u306e\u5024\u306f1\u3067\u3059\u3002<\/p>\n<p><strong>\u5f8c\u7f6e<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">a++<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">#include &lt;stdio.h&gt;\r\n\r\nint main(void)\r\n{\r\n  int a = 0;\r\n  int b\u00a0= 0;\r\n  b = a++;\r\n  printf(&quot;\u4ee3\u5165\u5f8c\u306b\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3002b\u306e\u5024\u306f%d\u3067\u3059\u3002 \u00a5n&quot;, b);\r\n  \r\n  return 0;\r\n}<\/pre>\n<p><strong>result<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\u4ee3\u5165\u5f8c\u306b\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3002b\u306e\u5024\u306f0\u3067\u3059\u3002<\/pre>\n<p>\u524d\u7f6e\u3068\u5f8c\u7f6e\u3067\u51fa\u529b\u5185\u5bb9\u304c\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4>\u4ee3\u5165\u6f14\u7b97\u5b50<\/h4>\n<p>\u30fb\u4ee3\u5165\u6f14\u7b97\u5b50\uff08assignment operator\uff09<\/p>\n<table>\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><strong>\u8a18\u53f7<\/strong><\/td>\n<td style=\"text-align: center;\"><strong>\u8a73\u7d30<\/strong><\/td>\n<\/tr>\n<tr>\n<td>+=<\/td>\n<td>\u52a0\u7b97\u4ee3\u5165<\/td>\n<\/tr>\n<tr>\n<td>-=<\/td>\n<td>\u6e1b\u7b97\u4ee3\u5165<\/td>\n<\/tr>\n<tr>\n<td>*=<\/td>\n<td>\u4e57\u7b97\u4ee3\u5165<\/td>\n<\/tr>\n<tr>\n<td>\/=<\/td>\n<td>\u9664\u7b97\u4ee3\u5165<\/td>\n<\/tr>\n<tr>\n<td>%=<\/td>\n<td>\u5270\u4f59\u4ee3\u5165<\/td>\n<\/tr>\n<tr>\n<td>&amp;=<\/td>\n<td>\u8ad6\u7406\u7a4d\u4ee3\u5165<\/td>\n<\/tr>\n<tr>\n<td>^=<\/td>\n<td>\u6392\u4ed6\u7684\u8ad6\u7406\u548c\u4ee3\u5165<\/td>\n<\/tr>\n<tr>\n<td>!=<\/td>\n<td>\u8ad6\u7406\u548c\u4ee3\u5165<\/td>\n<\/tr>\n<tr>\n<td>&lt;&lt;=<\/td>\n<td>\u5de6\u30b7\u30d5\u30c8\u4ee3\u5165<\/td>\n<\/tr>\n<tr>\n<td>&gt;&gt;=<\/td>\n<td>\u53f3\u30b7\u30d5\u30c8\u4ee3\u5165<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4>sizeof\u6f14\u7b97\u5b50<\/h4>\n<p>\u30fbsizeof\u6f14\u7b97\u5b50\uff08sizeof operator\uff09<\/p>\n<p>sizeof\u6f14\u7b97\u5b50\u3092\u7528\u3044\u308b\u3068\u8272\u3005\u306a\u578b\u3084\u5f0f\u306e\u30b5\u30a4\u30ba\u3092\u77e5\u308b\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">#include &lt;stdio.h&gt;\r\n\r\nint main(void)\r\n{\r\n  int a = 0;\r\n  int b\u00a0= 0;\r\n\r\n  printf(&quot;short int\u578b\u306e\u30b5\u30a4\u30ba\u306f%d\u30d0\u30a4\u30c8\u3067\u3059\u3002 \u00a5n&quot;, sizeof(short int));\r\n  printf(&quot;int\u578b\u306e\u30b5\u30a4\u30ba\u306f%d\u30d0\u30a4\u30c8\u3067\u3059\u3002 \u00a5n&quot;, sizeof(int));\r\n  printf(&quot;long int\u578b\u306e\u30b5\u30a4\u30ba\u306f%d\u30d0\u30a4\u30c8\u3067\u3059\u3002 \u00a5n&quot;, sizeof(long int));\r\n  printf(&quot;float\u578b\u306e\u30b5\u30a4\u30ba\u306f%d\u30d0\u30a4\u30c8\u3067\u3059\u3002 \u00a5n&quot;, sizeof(float));\r\n  printf(&quot;double\u578b\u306e\u30b5\u30a4\u30ba\u306f%d\u30d0\u30a4\u30c8\u3067\u3059\u3002 \u00a5n&quot;, sizeof(double));\r\n  printf(&quot;long\u00a0double\u578b\u306e\u30b5\u30a4\u30ba\u306f%d\u30d0\u30a4\u30c8\u3067\u3059\u3002 \u00a5n&quot;, sizeof(long double));\r\n  printf(&quot;\u5909\u6570a\u306e\u30b5\u30a4\u30ba\u306f%d\u30d0\u30a4\u30c8\u3067\u3059\u3002 \u00a5n&quot;, sizeof(a));\r\n  printf(&quot;\u5f0fa+b\u306e\u30b5\u30a4\u30ba\u306f%d\u30d0\u30a4\u30c8\u3067\u3059\u3002 \u00a5n&quot;, sizeof(a+b));\r\n\r\n  return 0;\r\n}<\/pre>\n<p><strong>result<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">short int\u578b\u306e\u30b5\u30a4\u30ba\u306f2\u30d0\u30a4\u30c8\u3067\u3059\u3002\r\nint\u578b\u306e\u30b5\u30a4\u30ba\u306f4\u30d0\u30a4\u30c8\u3067\u3059\u3002\r\nlong\u00a0int\u578b\u306e\u30b5\u30a4\u30ba\u306f4\u30d0\u30a4\u30c8\u3067\u3059\u3002\r\nfloat\u578b\u306e\u30b5\u30a4\u30ba\u306f4\u30d0\u30a4\u30c8\u3067\u3059\u3002\r\ndouble\u578b\u306e\u30b5\u30a4\u30ba\u306f8\u30d0\u30a4\u30c8\u3067\u3059\u3002\r\nlong\u00a0double\u578b\u306e\u30b5\u30a4\u30ba\u306f8\u30d0\u30a4\u30c8\u3067\u3059\u3002\r\n\u5909\u6570a\u306e\u30b5\u30a4\u30ba\u306f4\u30d0\u30a4\u30c8\u3067\u3059\u3002\r\n\u5f0fa+b\u306e\u30b5\u30a4\u30ba\u306f4\u30d0\u30a4\u30c8\u3067\u3059\u3002<\/pre>\n<h4>\u30b7\u30d5\u30c8\u6f14\u7b97\u5b50<\/h4>\n<p>\u30fb\u30b7\u30d5\u30c8\u6f14\u7b97\u5b50\uff08shift operator\uff09<\/p>\n<p>\u30b7\u30d5\u30c8\u6f14\u7b97\u5b50\u306f<\/p>\n<p><strong>\u6570\u5024\u30922\u9032\u6570\u3067\u8868\u3057\u305f\u5834\u5408\u306e\u6841\u3092\u5de6\u307e\u305f\u306f\u53f3\u306b\u6307\u5b9a\u6570\u3060\u3051\u305a\u3089\u3059\uff08\u30b7\u30d5\u30c8\u3059\u308b\uff09<\/strong><\/p>\n<p>\u3068\u3044\u3046\u6f14\u7b97\u3067\u3059\u3002<\/p>\n<p>\u5de6\u30b7\u30d5\u30c8\u6f14\u7b97\u5b50\u306e\u5834\u5408\u306f\u3001<\/p>\n<p>\u5de6\u8fba\u3067\u6307\u5b9a\u3057\u305f\b\u6841\u6570\u3092\u5de6\u306b\u305a\u3089\u3057\u3001\u53f3\u7aef\u304b\u30890\u3092\u5165\u308c\u308b\u3002<\/p>\n<p><strong>short int\u578b\u306e\u5024\u306e5&lt;&lt;2 \u3068\u3044\u3046\u5de6\u30b7\u30d5\u30c8\u6f14\u7b97\u5b50\u306e\u4f8b\uff1a<\/strong><\/p>\n<p>5 \u00a0 \u00a0 \u00a00000000000000101<\/p>\n<p>&lt;&lt; 2<\/p>\n<p>20 \u00a0 \u00a0 00000000000101<strong>00<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>10\u9032\u6570\u3067\u306f20\u306e\u5024\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u53f3\u30b7\u30d5\u30c8\u6f14\u7b97\u5b50\u306e\u5834\u5408\u306f\u3001<\/p>\n<p>\u53f3\u8fba\u3067\u6307\u5b9a\u3057\u305f\b\u6841\u6570\u3092\u53f3\u306b\u305a\u3089\u3057\u3001\u306f\u307f\u51fa\u3057\u305f\u6841\u6570\u3060\u3051\u5de6\u7aef\u304b\u30890\u3092\u5165\u308c\u308b\u3002<\/p>\n<p>\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><strong>\u53f3\u30b7\u30d5\u30c8\u3092\u884c\u3063\u305f\u5834\u5408\u306e\u4f8b\uff1a<\/strong><\/p>\n<p>5 \u00a0 \u00a0 \u00a00000000000000101<\/p>\n<p>&gt;&gt; 2<\/p>\n<p>1 \u00a0 \u00a0 <strong>00<\/strong>00000000000001<\/p>\n<p>&nbsp;<\/p>\n<p>10\u9032\u6570\u3067\u306f1\u306e\u5024\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u30fb\u6841\u3092\u305a\u3089\u3059\u3068\u8a00\u3046\u4e8b\u306f\u3002\u3002<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>10\u9032\u6570\u306e\u5834\u5408\u3001\u6841\u3092\u305a\u3089\u3059\u3068<\/strong><\/p>\n<p>5<\/p>\n<p>50 \u00a0\u5de6\u30781\u30b1\u30bf\u305a\u3089\u3059\uff0810\u500d\u3059\u308b\uff09<\/p>\n<p>500\u00a0\u5de6\u30782\u30b1\u30bf\u305a\u3089\u3059\uff08100\u500d\u3059\u308b\uff09<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>\u3059\u306a\u308f\u3061\u30011\u30b1\u30bf\u305a\u3089\u3059\u300c <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/ql-cache\/quicklatex.com-c8ffa6767e503f57d453cefb8de269d6_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#36;&#36;&#49;&#48;&#94;&#49;&#61;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"42\" style=\"vertical-align: 0px;\"\/> 10\u500d\u3059\u308b\u300d2\u30b1\u30bf\u305a\u3089\u3059\u300c<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/ql-cache\/quicklatex.com-d2eff7da4762c3ea66db2a37e2b1215d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#36;&#36;&#49;&#48;&#94;&#50;&#61;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"42\" style=\"vertical-align: 0px;\"\/> 100\u500d\u3059\u308b\u300d\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>2\u9032\u6570\u306e\u30b7\u30d5\u30c8\u6f14\u7b97\u5b50<\/strong>\u3067\u306f<\/p>\n<p>101<\/p>\n<p>1010 \u00a0 \u00a0\u5de6\u30781\u30b1\u30bf\u305a\u3089\u3059\uff082\u500d\u3059\u308b\uff09<\/p>\n<p>10100\u00a0\u5de6\u30782\u30b1\u30bf\u305a\u3089\u3059\uff084\u500d\u3059\u308b\uff09<\/p>\n<p>1\u30b1\u30bf\u305a\u3089\u3059\u300c<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/ql-cache\/quicklatex.com-ea3ab2a6b92763e4bcca760e3a9fa9e4_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#36;&#36;&#50;&#94;&#49;&#61;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"35\" style=\"vertical-align: 0px;\"\/>2\u500d\u3059\u308b\u300d2\u30b1\u30bf\u305a\u3089\u3059\u300c<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/ql-cache\/quicklatex.com-da7d788cc8e3951551d761e02596a6ab_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#36;&#36;&#50;&#94;&#50;&#61;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"35\" style=\"vertical-align: 0px;\"\/> 4\u500d\u3059\u308b\u300d\u3068\u3044\u3046\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u6f14\u7b97\u5b50\u306e\u512a\u5148\u9806\u4f4d<\/h4>\n<p>&nbsp;<\/p>\n<p><strong>\u5de6\u7d50\u5408<\/strong><\/p>\n<p>a + b + 1<\/p>\n<p>(a + b) + 1<\/p>\n<p>\u5de6\u304b\u3089\u8a55\u4fa1\u3055\u308c\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u53f3\u7d50\u5408<\/strong><\/p>\n<p>a = b = 1<\/p>\n<p>a = (b = 1)<\/p>\n<p>\u53f3\u304b\u3089\u8a55\u4fa1\u3055\u308c\u308b\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><strong>\u8a18\u53f7<\/strong><\/td>\n<td style=\"text-align: center;\"><strong>\u540d\u524d<\/strong><\/td>\n<td style=\"text-align: center;\"><strong>\u7d50\u5408\u898f\u5247<\/strong><\/td>\n<\/tr>\n<tr>\n<td>( )<\/td>\n<td>\u95a2\u6570\u547c\u3073\u51fa\u3057<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<tr>\n<td>[ ]<\/td>\n<td>\u914d\u5217\u6dfb\u5b57<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<tr>\n<td>.<\/td>\n<td>\u30e1\u30f3\u30d0\u53c2\u7167\uff08\u30c9\u30c3\u30c8\uff09<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<tr>\n<td>-&gt;<\/td>\n<td>\u30e1\u30f3\u30d0\u9593\u63a5\u53c2\u7167\uff08\u30a2\u30ed\u30fc\uff09<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<tr>\n<td>++<\/td>\n<td>\u5f8c\u7f6e\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<tr>\n<td>&#8212;<\/td>\n<td>\u5f8c\u7f6e\u30c7\u30af\u30ea\u30e1\u30f3\u30c8<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<tr>\n<td>!<\/td>\n<td>\u8ad6\u7406\u5426\u5b9a<\/td>\n<td>\u53f3<\/td>\n<\/tr>\n<tr>\n<td>~<\/td>\n<td>\u88dc\u6570<\/td>\n<td>\u53f3<\/td>\n<\/tr>\n<tr>\n<td>+<\/td>\n<td>\u5358\u9805+<\/td>\n<td>\u53f3<\/td>\n<\/tr>\n<tr>\n<td>&#8211;<\/td>\n<td>\u00a0\u5358\u9805-<\/td>\n<td>\u53f3<\/td>\n<\/tr>\n<tr>\n<td>sizeof<\/td>\n<td>\u30b5\u30a4\u30ba<\/td>\n<td>\u53f3<\/td>\n<\/tr>\n<tr>\n<td>++<\/td>\n<td>\u524d\u7f6e\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8<\/td>\n<td>\u53f3<\/td>\n<\/tr>\n<tr>\n<td>&#8212;<\/td>\n<td>\u524d\u7f6e\u30c7\u30af\u30ea\u30e1\u30f3\u30c8<\/td>\n<td>\u53f3<\/td>\n<\/tr>\n<tr>\n<td>&amp;<\/td>\n<td>\u30a2\u30c9\u30ec\u30b9<\/td>\n<td>\u53f3<\/td>\n<\/tr>\n<tr>\n<td>*<\/td>\n<td>\u9593\u63a5\u53c2\u7167<\/td>\n<td>\u53f3<\/td>\n<\/tr>\n<tr>\n<td>( )<\/td>\n<td>\u30ad\u30e3\u30b9\u30c8<\/td>\n<td>\u53f3<\/td>\n<\/tr>\n<tr>\n<td>%<\/td>\n<td>\u5270\u4f59<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<tr>\n<td>*<\/td>\n<td>\u4e57\u7b97<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<tr>\n<td>\/<\/td>\n<td>\u9664\u7b97<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<tr>\n<td>+<\/td>\n<td>\u52a0\u7b97<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<tr>\n<td>&#8211;<\/td>\n<td>\u6e1b\u7b97<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<tr>\n<td>&lt;&lt;<\/td>\n<td>\u5de6\u30b7\u30d5\u30c8<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<tr>\n<td>&gt;&gt;<\/td>\n<td>\u53f3\u30b7\u30d5\u30c8<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<tr>\n<td>&gt;<\/td>\n<td>\u3088\u308a\u5927\u304d\u3044<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<tr>\n<td>&gt;=<\/td>\n<td>\u4ee5\u4e0a<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<tr>\n<td>&lt;<\/td>\n<td>\u672a\u6e80<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<tr>\n<td>&lt;=<\/td>\n<td>\u4ee5\u4e0b<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<tr>\n<td>==<\/td>\n<td>\u7b49\u4fa1<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<tr>\n<td>!=<\/td>\n<td>\u975e\u7b49\u4fa1<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<tr>\n<td>&amp;<\/td>\n<td>\u30d3\u30c3\u30c8\u8ad6\u7406\u7a4d<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<tr>\n<td>^<\/td>\n<td>\u30d3\u30c3\u30c8\u6392\u4ed6\u7684\u8ad6\u7406\u548c<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<tr>\n<td>|<\/td>\n<td>\u30d3\u30c3\u30c8\u8ad6\u7406\u548c<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<tr>\n<td>&amp;&amp;<\/td>\n<td>\u8ad6\u7406\u7a4d<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<tr>\n<td>||<\/td>\n<td>\u8ad6\u7406\u548c<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<tr>\n<td>? :<\/td>\n<td>\u6761\u4ef6<\/td>\n<td>\u53f3<\/td>\n<\/tr>\n<tr>\n<td>=<\/td>\n<td>\u4ee3\u5165<\/td>\n<td>\u53f3<\/td>\n<\/tr>\n<tr>\n<td>,<\/td>\n<td>\u9806\u6b21<\/td>\n<td>\u5de6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h4>\u578b\u5909\u63db<\/h4>\n<p>\u5927\u304d\u3044\u30b5\u30a4\u30ba\u306e\u578b\u306e\u5909\u6570\u306b\u5c0f\u3055\u3044\u30b5\u30a4\u30ba\u306e\u578b\u306e\u5024\u3092\u4ee3\u5165\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">#include &lt;stdio.h&gt;\r\n\r\nint main(void)\r\n{\r\n  int inum;\r\n  double dnum;\r\n  inum = 120;\r\n  printf(&quot;int %d \u00a5n&quot;, inum);\r\n  dnum =\u00a0inum;\r\n  printf(&quot;double %f \u00a5n&quot;,dnum);\r\n\r\n  return 0;\r\n}<\/pre>\n<p><strong>result<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">int 120;\r\ndouble 120.000000<\/pre>\n<p>\u5c0f\u3055\u3044\u30b5\u30a4\u30ba\u306b\u4ee3\u5165\u3059\u308b\u3068<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">#include &lt;stdio.h&gt;\r\n\r\nint main(void)\r\n{\r\n  int inum;\r\n  double dnum;\r\n  dnum = 120.5;\r\n  printf(&quot;double %f \u00a5n&quot;,dnum);\r\n  inum = dnum;\r\n  printf(&quot;int %d \u00a5n&quot;, inum);\r\n  \r\n  return 0;\r\n}<\/pre>\n<p><strong>result<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">double 120.500000\r\nint 120<\/pre>\n<p>\u5207\u308a\u6368\u3066\u304c\u884c\u308f\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<h4>\u30ad\u30e3\u30b9\u30c8\u6f14\u7b97\u5b50<\/h4>\n<p>\u30fb\u30ad\u30e3\u30b9\u30c8\u6f14\u7b97\u5b50<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">(\u578b)\u5f0f<\/pre>\n<p>double dnum\u3092int\u578b\u306b\u5909\u63db<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">inum = (int)dnum;<\/pre>\n<p>dnum = 120.5 \u306f\u3001inum = 120 \u3068\u5207\u308a\u6368\u3066\u3089\u308c\u308b\u306e\u306f\u4e0a\u8a18\u3068\u540c\u69d8\u3067\u3059\u3002<\/p>\n<h5>\u7570\u306a\u308b\u578b\u306e\u6f14\u7b97<\/h5>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">#include &lt;stdio.h&gt;\r\n\r\nint main(void)\r\n{\r\n  int d = 2;\r\n  double pi = 3.14;\r\n  printf(&quot;\u76f4\u5f84\u304c%d\u30bb\u30f3\u30c1\u306e\u5186\u306e \u00a5n&quot;, d);\r\n  printf(&quot;\u5186\u5468\u306f%f\u30bb\u30f3\u30c1\u3067\u3059\u3002 \u00a5n&quot;, d*pi);\r\n\r\n  return 0;\r\n}<\/pre>\n<p><strong>result<\/strong><\/p>\n<p>\u76f4\u5f84\u304c2\u30bb\u30f3\u30c1\u306e\u5186\u306e<\/p>\n<p>\u5186\u5468\u306f6.280000\u30bb\u30f3\u30c1\u3067\u3059\u3002<\/p>\n<p><strong>\u4e00\u65b9\u306e\u30aa\u30da\u30ec\u30f3\u30c9\u3092\u5927\u304d\u3044\u30b5\u30a4\u30ba\u306e\u65b9\u306b\u578b\u5909\u63db\u3057\u3066\u304b\u3089\u6f14\u7b97\u3092\u884c\u3046<\/strong><\/p>\n<p>int\u578b\u306ed\u306e\u5024\u306e\u300c2\u300d\u304cdouble\u578b\u306e\u6570\u5024\uff082.0\uff09\u306b\u5909\u63db\u3055\u308c\u6f14\u7b97\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5f97\u3089\u308c\u308b\u5f0f\u306e\u5024\u3082double\u578b\u306e\u6570\u5024\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h5>\u540c\u3058\u578b\u540c\u58eb\u306e\u6f14\u7b97<\/h5>\n<p>\u540c\u3058\u578b\u540c\u58eb\u3067\u6f14\u7b97\u3092\u884c\u3046\u5834\u5408\u3067\u610f\u56f3\u3057\u306a\u3044\u5024\u306b\u306a\u308b\u6642<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">#include &lt;stdio.h&gt;\r\n\r\nint main(void)\r\n{\r\n  int num1, num2;\r\n  double div;\r\n  num1 = 5;\r\n  num2 = 4;\r\n\r\n  div = num1 \/num2;\r\n\r\n  printf(&quot;5\/4\u306f%f\u3067\u3059\u3002 \u00a5n&quot;, div);\r\n\r\n  return 0;\r\n}<\/pre>\n<p><strong>result<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">5\/4\u306f1.000000\u3067\u3059\u3002<\/pre>\n<p>int\u578b\u306e\u5909\u6570num1\u3068num2\u3092\u4f7f\u3044\u30015\u00f74\u306e\u7d50\u679c\u3092<strong>double\u578b\u5909\u6570 div<\/strong>\u306b\u4ee3\u5165\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u3053\u308d\u3001<\/p>\n<p><strong>\u300c1.25\u300d\u306e\u5024\u3092\u671f\u5f85<\/strong>\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u51fa\u529b\u306f\u300c1.00..\u300d\u3068\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u5834\u5408\u306f\u300c<strong>\u30ad\u30e3\u30b9\u30c8\u6f14\u7b97\u5b50<\/strong>\u300d\u3092\u5229\u7528\u3059\u308b\u304b\u3001<strong>num1\u304bnum2\u306e\u3069\u3061\u3089\u304b\u3092double\u578b\u306b\u3059\u308b\u5fc5\u8981<\/strong>\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">div = (double)num1 \/(double)num2;<\/pre>\n<p><strong>result<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">5\/4\u306f1.250000\u3067\u3059\u3002<\/pre>\n<h4>\u95a2\u4fc2\u6f14\u7b97\u5b50<\/h4>\n<table>\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><strong>\u6f14\u7b97\u5b50<\/strong><\/td>\n<td style=\"text-align: center;\"><strong>\u5f0f\u304c\u771f\u3068\u306a\u308b\u5834\u5408<\/strong><\/td>\n<\/tr>\n<tr>\n<td>==<\/td>\n<td>\u53f3\u8fba\u304c\u5de6\u8fba\u306b\u7b49\u3057\u3044<\/td>\n<\/tr>\n<tr>\n<td>!=<\/td>\n<td>\u53f3\u8fba\u304c\u5de6\u8fba\u306b\u7b49\u3057\u304f\u306a\u3044<\/td>\n<\/tr>\n<tr>\n<td>&gt;<\/td>\n<td>\u53f3\u8fba\u3088\u308a\u5de6\u8fba\u304c\u5927\u304d\u3044<\/td>\n<\/tr>\n<tr>\n<td>&gt;=<\/td>\n<td>\u53f3\u8fba\u3088\u308a\u5de6\u8fba\u304c\u5927\u304d\u3044\u304b\u7b49\u3057\u3044<\/td>\n<\/tr>\n<tr>\n<td>&lt;<\/td>\n<td>\u53f3\u8fba\u3088\u308a\u5de6\u8fba\u304c\u5c0f\u3055\u3044<\/td>\n<\/tr>\n<tr>\n<td>&lt;=<\/td>\n<td>\u53f3\u8fba\u3088\u308a\u5de6\u8fba\u304c\u5c0f\u3055\u3044\u304b\u7b49\u3057\u3044<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>C\u8a00\u8a9e\u306e\u57fa\u790e\u30fb\u57fa\u672c\u3092\u3064\u3089\u3064\u3089\u3068\u3002 &nbsp; \u30a8\u30b9\u30b1\u30fc\u30d7\u30b7\u30fc\u30b1\u30f3\u30b9 &nbsp; \u30a8\u30b9\u30b1\u30fc\u30d7\u30b7\u30fc\u30b1\u30f3\u30b9 \u8a73\u7d30 \u00a5a \u8b66\u544a\u97f3 \u00a5b \u30d0\u30c3\u30af\u30b9\u30da\u30fc\u30b9 \u00a5t \u6c34\u5e73\u30bf\u30d6 \u00a5v \u5782\u76f4\u30bf\u30d6 \u00a5n \u6539\u884c \u00a5f \u6539\u30da\u30fc\u30b8 \u00a5r \u5fa9\u5e30  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[200],"tags":[171,59,40,166,95,39,178,138,78],"class_list":["post-7161","post","type-post","status-publish","format-standard","hentry","category-c-2","tag-android","tag-android-sdk","tag-ios-sdk","tag-iphone","tag-95","tag-39","tag-178","tag-138","tag-78"],"_links":{"self":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/7161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7161"}],"version-history":[{"count":11,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/7161\/revisions"}],"predecessor-version":[{"id":7270,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/7161\/revisions\/7270"}],"wp:attachment":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}