---
title: "C的数据类型"
author: "hwpok"
date: "2008-10-03T15:13:00Z"
tags: ["C", "C#", "C++"]
slug: "c"
draft: false
lastmod: "2008-10-03T15:13:00Z"
id: 615831
url: "https://hwpok.iteye.com/blog/615831"
---

1.整型变量  
   int           2byte/4byte  
   short       2byte  
   long        4byte  
   在c里,所有类型的大小都是由编译器决定的.c语言的ANSI标准只要求short&lt;=int&lt;=long.