X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2023-05.git/blobdiff_plain/29607ac01b10c735406ff0584dd903416623b20a..b79e0a8bf378602e9df72410dc711532c40115b1:/src/notes.tm diff --git a/src/notes.tm b/src/notes.tm index 67728a6..03d208a 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 @@ -18,6 +60,9 @@ same associations as a declaration but also causes storage to be allocated for the variable. (See ). + A source code analysis program + designed to detect common syntactic errors. + > (or ) is a user defined data type in . It is mainly used to assign names to integral constants. For example, the declaration @@ -30,7 +75,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 +84,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 +114,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 +182,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,11 +210,41 @@ 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 ). + \; - \; + + + + + <\itemize> + - GNU text editor. See + . + + - text editor See . + + + + + (TODO: Insert C language linter here) \; @@ -178,20 +261,24 @@ > > > + > + > + > > - > + > + > > - > + > + > > > > - > + > |?>> - |?>> + > |?>> - > - > + |prog-language||font-family||\\x>|hh>|?>> > heap|?>> stack|?>> struct|?>> > - > + >