03-数据类型

---
# 1 数据类型
---

## 1 和C++不同的数据类型:
byte: 8位,0~255
decimal:范围大于double,128位
sbyte: 8位,-128~127
uint 32
ubyte 8 
ushort 16
ulong 64

支持 sizeof() 返回的是字节数,不是比特数(位数)

## 2 字符串中的 @ 用法:
### 2.1 @"C:\Windows"; // 忽略转义字符
### 2.2 可以任意换行
string str = @"<script type=""text/javascript"">
 <!--
 -->
 </script>";

## 3 支持指针


---
参考:
http://www.runoob.com/csharp/csharp-data-types.html
---

  

猜你喜欢

转载自www.cnblogs.com/alexYuin/p/9066781.html