๐Ÿ’– [C์–ธ์–ด ์ž…๋ฌธ]

โ€์ „ํฌ์ฃผยท2023๋…„ 3์›” 8์ผ

๐Ÿงก ์ž๋ฃŒํ˜•์˜ ์ข…๋ฅ˜

  • ์ž๋ฃŒํ˜•: ๋ฉ”๋ชจ๋ฆฌ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๋‹จ์œ„
    • signed char: ๋ถ€ํ˜ธ๊ฐ€ ์žˆ๋Š” 1๋ฐ”์ดํŠธ ์ €์žฅ ๊ณต๊ฐ„
    • unsigned char: ๋ถ€ํ˜ธ๊ฐ€ ์—†๋Š” 1๋ฐ”์ดํŠธ ์ €์žฅ ๊ณต๊ฐ„
    • signed short int: ๋ถ€ํ˜ธ๊ฐ€ ์žˆ๋Š” 2๋ฐ”์ดํŠธ ์ €์žฅ ๊ณต๊ฐ„
    • unsigned short int: ๋ถ€ํ˜ธ๊ฐ€ ์—†๋Š” 2๋ฐ”์ดํŠธ ์ €์žฅ ๊ณต๊ฐ„
    • signed long int: ๋ถ€ํ˜ธ๊ฐ€ ์žˆ๋Š” 4๋ฐ”์ดํŠธ ์ €์žฅ ๊ณต๊ฐ„
    • unsigned long int: ๋ถ€ํ˜ธ๊ฐ€ ์—†๋Š” 4๋ฐ”์ดํŠธ ์ €์žฅ ๊ณต๊ฐ„

  • ์ •์ˆ˜ ์ž๋ฃŒํ˜• ์ž์ฃผ ์“ฐ๋Š” ํ˜•ํƒœ
    • ์ •์ˆ˜ ์ž๋ฃŒํ˜•์€ ์ฃผ๋กœ ์ƒ๋žตํ•œ ํ˜•ํƒœ๋ฅผ ์“ด๋‹ค
    • short๋‚˜ long์€ ๋ฐ˜๋“œ์‹œ int ์•ž์—๋งŒ ๋ถ™๋Š” ์˜ˆ์•ฝ์–ด์ด๊ธฐ ๋•Œ๋ฌธ์—, ๋’ค์—์˜ค๋Š” int๋ฅผ ์ƒ๋žตํ•˜๋”๋ผ๋„ int์ธ์ค„ ์•Œ ์ˆ˜ ์žˆ๋‹ค
    • signed short int => short
    • unsigned short int => unsigned short
profile
heejoojeon@daou.co.kr

0๊ฐœ์˜ ๋Œ“๊ธ€