X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2023-05.git/blobdiff_plain/29607ac01b10c735406ff0584dd903416623b20a..d360dfb82e52a96fe565ec441fab1f63366466b5:/src/notes.tm diff --git a/src/notes.tm b/src/notes.tm index 67728a6..0d4cac6 100644 --- a/src/notes.tm +++ b/src/notes.tm @@ -3,11 +3,53 @@ > <\body> + <\hide-preamble> + \; + + + >||0>>|list*|list>|>>>|>>>>|> + > + + <\description-compact> + An expression in which a variable is set to a value. + For example, in the expression >, the variable + is set to the value because is to the left of the equals + sign \ \P\Q. The value of the entire expression is equal to the + value of the left hand side (i.e. in this example) after the + assignment is performed. For example, the following C code will print + \P\Q: + + <\cpp-code> + #include \stdio.h\ + + int main() { + + \ \ int c; + + \ \ if( (c = 7) == 7 ) + + \ \ \ \ printf("true"); + + \ \ else + + \ \ \ \ printf("false"); + + }; + + + As another example, the following lines are equivalent: + + <\cpp-code> + a = b = c = 0; + + a = ( b = ( c = 0 ) ); + + >A construct that establishes an association between a particular variable, function, or type and its attributes. (See @@ -30,7 +72,7 @@ used to represent hard-to-type or invisible characters. Some commonly used escape sequences in include: - <\description-paragraphs> + <\description-aligned> >Represents the character. >Represents the character. @@ -39,11 +81,11 @@ >Represents the (i.e. \P>\Q) character. - + All other escape sequences used in are: - <\description-paragraphs> + <\description-aligned> >Represents the (bell) character. >Represents the character. @@ -69,7 +111,7 @@ >Represents a number (e.g. is the character>). - + The process of freeing memory allocated by a program but which is no longer referenced. @@ -137,7 +179,15 @@ <\description> - >Read one character at a time. + >Read one character at a time + from the input buffer. Returns as a .<\footnote> + characters have constants in the range . UTF-8 + characters return multiple constants (e.g. \<#B0\> returns ). See . + A strategy for reading the multiple bytes of a UTF-8 character is here: + . + >A generalization of . Takes three arguments: @@ -157,6 +207,23 @@ character (e.g. ) at a time. >Used for printing formatted text to console. + + Character codes include: + + <\description-aligned> + >Used with (i.e. 16-bit integers; max value of + =32\767>). + + >Used with (i.e. at least 32-bit + integers).<\footnote> + K&R 2nd Ed., Sec. 1.5 \PThe conversion specification tells + that the corresponding argument is a + integer.\Q + + + >Used with and (double + precision ). + \; @@ -178,20 +245,22 @@ > > > + > > - > + > + > > - > + > + > > > > - > + > |?>> |?>> |?>> - > - > + |prog-language||font-family||\\x>|hh>|?>> > heap|?>> stack|?>> struct|?>> > - >