2012年12月24日 星期一

Unsigned vs. Signed

Unsigned vs. Signed


2013/07/02
新增幾個受益良多的連結
http://novus.pixnet.net/blog/post/26896236-back-to-basic%3A-%E8%AB%87unsigned
http://kezeodsnx.pixnet.net/blog/post/32341565-unsigned-vs-signed


在定義整數變數的型態的時候可以加上 unsigned 或是 signed, 例如
unsigned char
unsigned short (int)
unsigned long (int)
unsigned int
----------
signed char
signed short (int)
signed long (int)
signed int
--------------
上面 signed 有加和沒有加是一樣的意義