<< Click to Display Table of Contents >> Navigation: Concordance Programming Language Reference > Character Literals and Quoted Strings |
Individual characters used as data within a program are enclosed by apostrophes. Character strings can be enclosed within quotation marks or apostrophes. The character used to begin the enclosure must be used to terminate the enclosure. A single character enclosed within quotes is interpreted as a character string. A single character enclosed within apostrophes is interpreted as an integer.
trans() { int x; char string[50]; x = 'a'; string = '"What," she said.'; /* ... */ string = "can’t"; /* ... */ } |