|
|
´ñ±Û 22
À͸í
2011-11-19 22:36:06
±×¸®°í 0xb ¿¡¼ x°¡ ¾ø¾îÁø ÇüŶó´Â ¾ê±âµµ ÀÖ°í¿ä
It is not the case of the 'b' that matters, but the syntax. Conventionally a number starting with [1-9] is parsed as decimal, one starting with "0x" as hexadecimal, and one starting with /0[^xX]/ as octal. If the characters after the recognition sequence con't fit into the alphabet of the number system, this creates a syntax error in the brain. So 11 should be written as "0xB" or "0xb" or "013". :
ÀÛ¼ºÀÚ¿¡°Ô °æ°í³ª °µî(ÀÌ¿ëÁ¤Áö) óºÐÀÌ ÇÊ¿äÇÑ°¡¿ä? ¸ÅÀÏ ¹«ÀÛÀ§·Î ¼±Á¤µÇ´Â °íÆĽº ¹è½É¿øµé¿¡°Ô ÆÇ°áÀ» ¸Ã±é´Ï´Ù.
(ÁÖÀÇ) ½Å°í ³»¿ë¿¡ ¿å¼³,Æø¾ð µî ºÒÇÊ¿äÇÑ ±ÛÀ» ¾²½Ã¸é []´ÔÀÌ °µîµË´Ï´Ù. »çÀ¯¸¸ °£´ÜÈ÷, °¨Á¤À» ¹èÁ¦ÇÏ°í ½áÁÖ¼¼¿ä.
|
|
|
|