---
title: "c++位运算与类型字节数"
author: "andy136566"
date: "2011-09-02T23:51:02Z"
tags: []
categories: ["编程语言"]
slug: "c"
draft: false
lastmod: "2011-09-23T09:54:09Z"
id: 1164722
url: "https://andy136566.iteye.com/blog/1164722"
---

[http://www.cnblogs.com/thujason/archive/2010/07/08/1773529.html](http://www.cnblogs.com/thujason/archive/2010/07/08/1773529.html)

[http://blog.sina.com.cn/s/blog\_6cabbdcd0100pu56.html](http://blog.sina.com.cn/s/blog_6cabbdcd0100pu56.html)

查看机器上char、int等占的位数

sizeof(char)

sizeof(int)