For example figure 12 shows the ascii representation

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: rn systems represent text characters using the ASCII standard that represents each character with a unique byte-sized integer value. For example, Figure 1.2 shows the ASCII representation of the hello.c program. # 35 h 104 i 105 > 62 n 110 \n 10 c 99 \n 10 l 108 i 105 u 117 n 110 p 112 o 111 d 100 e <sp> 101 32 m 109 n 110 d 100 < 60 a 97 t 116 \ 92 s 115 i 105 f 102 n 110 t 116 n 110 ( 40 " 34 d 100 ( 40 " 34 ) 41 i 105 ) 41 h 104 ; 59 o 111 \n 10 e 101 \n 10 . 46 { 123 l 108 } 125 t <sp> 116 32 r 114 r 114 i 105 l 108 \n <sp> <sp> <sp> <sp> 10 32 32 32 32 l 108 o 111 , <sp> 44 32 w 119 Figure 1.2: The ASCII text representation of hello.c. The hello.c program is stored in a file as a sequence of bytes. Each byte has an integer value that corresponds to some character. For example, the first byte has the integer value 35, which corresponds to the character ’#’. The second byte has the integer value 105, which corresponds to the character ’i’, and so on. Notice tha...
View Full Document

Ask a homework question - tutors are online