1#!F-adobe-helvetica-medium-r-normal--18* 2#!N 3#!CDarkGreen 4#!N #!Rstrico String Constants #!N #!EC String constants consist of a 5sequence of any characters delimited by the double quote character ("). 6However, a null character in a string delimited by double quotation 7marks (for example, "str\0ing") causes the string to be terminated at 8the null character. #!N #!N String constants have the following characteristics: 9#!N #!I0 #!N #!F-adobe-times-medium-r-normal--18* #!N #!N #!I30 #!N o They are 10delimited with double quotes. #!N #!I30 #!N o They can be 11up to 4000 characters long. #!N #!I30 #!N o They may 12extend over multiple lines, providing that the last character on each 13line (except for the last line) is a backslash. For example, 14the following lines, #!CForestGreen #!N #!N #!F-adobe-courier-bold-r-normal--18* #!N a = "123\ 15#!N 456"; #!EF #!N #!N #!EC are equivalent to #!CForestGreen #!N 16#!N #!F-adobe-courier-bold-r-normal--18* #!N a = "123456"; #!EF #!N #!N #!EC #!N 17#!I0 #!N #!EF #!N #!N #!N You can use the following 18escape sequences to include special characters in a string constant: #!T,1,216,431,646 19 #!F-adobe-times-bold-r-normal--18* #!N TAB Description TAB Character TAB Escape Sequence #!EF #!N 20TAB newline TAB NL (LF) TAB \n #!N TAB horizontal tab 21TAB HT TAB \t #!N TAB vertical tab TAB VT TAB 22\v #!N TAB backspace TAB BS TAB \b #!N TAB carriage 23return TAB CR TAB \r #!N TAB formfeed TAB FF TAB 24\f #!N TAB audible alert TAB BEL TAB \a #!N TAB 25backslash TAB \ TAB \\ #!N TAB question mark TAB ? 26TAB \? #!N TAB single quote TAB ' TAB \' #!N 27TAB double quote TAB " TAB \" #!N TAB octal number 28(ooo) TAB - TAB \ooo #!N TAB hex number (hh) TAB 29- TAB \xhh #!N #!N The following are examples of valid 30string constants: #!CForestGreen #!N #!N #!F-adobe-courier-bold-r-normal--18* #!N "" // an empty 31string #!N #!N "this a string: ~!@#$%^&*()_+" #!EF #!N #!N #!EC 32#!N #!N #!N #!F-adobe-times-medium-i-normal--18* Next Topic #!EF #!N #!N #!Lall517,dxall518 h Scalar Numeric Constants #!EL #!N 33 #!F-adobe-times-medium-i-normal--18* #!N 34