[IOS] Objective-C

Objective-C 언어의 기본 자료형

최고관리자
2018.04.09 15:57 6,034 0

본문

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

출처 : https://jung2.net/objective-c-%EC%96%B8%EC%96%B4%EC%9D%98-%EA%B8%B0%EB%B3%B8-%EC%9E%90%EB%A3%8C%ED%98%95/ 

댓글목록 0

등록된 댓글이 없습니다.