Skip to content

Commit

Permalink
📝 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kaityo256 committed Sep 26, 2023
1 parent 5830ba1 commit db3710f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scope/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ <h1 id="スコープ">スコープ</h1>
<span id="cb22-2"><a href="#cb22-2" aria-hidden="true" tabindex="-1"></a>  int a <span class="op">=</span> <span class="dv">10</span><span class="op">;</span> <span class="co">//変数aはこのif文のみで有効</span></span>
<span id="cb22-3"><a href="#cb22-3" aria-hidden="true" tabindex="-1"></a><span class="op">}</span></span>
<span id="cb22-4"><a href="#cb22-4" aria-hidden="true" tabindex="-1"></a>if <span class="op">(</span>true<span class="op">){</span></span>
<span id="cb22-5"><a href="#cb22-5" aria-hidden="true" tabindex="-1"></a>  printf<span class="op">(</span><span class="st">&quot;%d</span><span class="sc">\n</span><span class="st">&quot;</span><span class="op">,</span>a<span class="op">);</span> <span class="co">// 変数aはここから見えないのでエラー</span></span>
<span id="cb22-5"><a href="#cb22-5" aria-hidden="true" tabindex="-1"></a>  printf<span class="op">(</span><span class="st">&quot;</span><span class="sc">%d\n</span><span class="st">&quot;</span><span class="op">,</span>a<span class="op">);</span> <span class="co">// 変数aはここから見えないのでエラー</span></span>
<span id="cb22-6"><a href="#cb22-6" aria-hidden="true" tabindex="-1"></a><span class="op">}</span></span></code></pre></div>
<p>Pythonの同等なコードはエラーにならない。</p>
<div class="sourceCode" id="cb23"><pre
Expand Down

0 comments on commit db3710f

Please sign in to comment.