Objective-C 언어의 기본 자료형

Objective-C 언어의 기본 자료형

Objective-C

Java

C Definition

Bit

Range

BOOL

boolean

1

true / false

8

YES / NO

char

byte

int8_t

8

-128 ~ 127

unsigned char

uint_8

8

0 ~ 255

char

int16_t

16

-32768 ~
32767

unichar

uint16_t

16

0 ~
65535

short int

short

int16_t

16

-32768 ~
32767

unsigned short int

uint16_t

16

0 ~
65535

int

int

int32_t

32

– 2^31 ~
2^31 -1

unsigned int

uint32_t

32

0 ~
2^32

long long int

long

int64_t

64

-2^64 ~
2^64 – 1

unsigned long long int

uint64_t

64

0 ~
2^64

float

float

float_t

32

+- 10^38

double

double

double_t

64

+- 10^308

댓글 남기기