アットウィキロゴ

変数

(signed) int
 符号あり整数
 -2147483648~2147483647
32bit(4byte)コンパイラによっては2byte

unsigned int
 符号なし整数
 0~4294967295
32bit(4byte)コンパイラによっては2byte

(signed)short(int)
 -32768~32767
16bit(2byte)

unsigned short(int)
 0~65535
16bit(2byte)

(signed)long(int)
 -2147483648~2147483647
32bit(4byte)

unsigned long(int)
 0~4294967295
32bit(4byte)

float
float hoge = 1.23f;
2^32.2^8
32bit(2byte)

double
double hoge = 1.2345;
2^52.2^11
64bit(8byte)

(signed)char
char hoge = 'a';
 -128~127
16bit(1byte)

unsigned char
0~255
16bit(1byte)

void
値なし

*
int *p
ポインタ型

BOOL
BOOL hoge = Yes;
真偽型
0 :NO:false
他:YES:true

クラス名 *ポインタ(クラス)変数
MyClass *hoge;
id hoge;
クラスオブジェクト型










最終更新:2009年05月17日 18:53
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。