<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>数据类型 on My Blog</title>
    <link>http://localhost:1313/tags/%E6%95%B0%E6%8D%AE%E7%B1%BB%E5%9E%8B/</link>
    <description>Recent content from My Blog</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    
    <managingEditor>3453434429@qq.com (ArenBase)</managingEditor>
    <webMaster>3453434429@qq.com (ArenBase)</webMaster>
    
    <copyright>本博客所有文章除特别声明外，均采用 BY-NC-SA 许可协议。转载请注明出处！</copyright>
    
    <lastBuildDate>Sun, 05 Apr 2026 00:00:00 +0000</lastBuildDate>
    
    
    <atom:link href="http://localhost:1313/tags/%E6%95%B0%E6%8D%AE%E7%B1%BB%E5%9E%8B/index.xml" rel="self" type="application/rss&#43;xml" />
    

    
    

    <item>
      <title>整数运算的类型与溢出防范</title>
      <link>http://localhost:1313/post/%E6%95%B4%E6%95%B0%E8%BF%90%E7%AE%97%E7%9A%84%E7%B1%BB%E5%9E%8B%E4%B8%8E%E6%BA%A2%E5%87%BA%E9%98%B2%E8%8C%83/</link>
      <pubDate>Sun, 05 Apr 2026 00:00:00 &#43;0000</pubDate>
      <author>3453434429@qq.com (ArenBase)</author>
      <guid>http://localhost:1313/post/%E6%95%B4%E6%95%B0%E8%BF%90%E7%AE%97%E7%9A%84%E7%B1%BB%E5%9E%8B%E4%B8%8E%E6%BA%A2%E5%87%BA%E9%98%B2%E8%8C%83/</guid>
      <description>
        <![CDATA[<h1>整数运算的类型与溢出防范</h1><p>作者：ArenBase（3453434429@qq.com）</p>
        
          <h2 id="一表达式计算的基本规则">
<a class="header-anchor" href="#%e4%b8%80%e8%a1%a8%e8%be%be%e5%bc%8f%e8%ae%a1%e7%ae%97%e7%9a%84%e5%9f%ba%e6%9c%ac%e8%a7%84%e5%88%99"></a>
一、表达式计算的基本规则
</h2><h3 id="1-表达式的类型由操作数决定">
<a class="header-anchor" href="#1-%e8%a1%a8%e8%be%be%e5%bc%8f%e7%9a%84%e7%b1%bb%e5%9e%8b%e7%94%b1%e6%93%8d%e4%bd%9c%e6%95%b0%e5%86%b3%e5%ae%9a"></a>
1. 表达式的类型由操作数决定
</h3><p>在C++中，<strong>表达式的计算结果类型由==操作数的类型决定==，而不是由赋值目标的类型决定</strong>。</p>
        
        <hr><p>本文2026-04-05首发于<a href='http://localhost:1313/'>My Blog</a>，最后修改于2026-04-05</p>]]>
      </description>
      
        <category>C&#43;&#43;</category>
      
    </item>
    
  </channel>
</rss>
