---
title: "原码，补码，反码"
author: "water84222"
date: "2008-02-26T16:03:10Z"
tags: []
slug: "untitled"
draft: false
lastmod: "2009-09-21T23:12:30Z"
id: 165190
url: "https://onlyLove.iteye.com/blog/165190"
---

**原码按位取反成为反码；**  
**反码+1成为补码。**

**原码=补码取反+1**  
**正数以原码保存，负数以补码保存。没毕业几天，这都给忘了，切忌切忌。**