X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2023-05.git/blobdiff_plain/d360dfb82e52a96fe565ec441fab1f63366466b5..505b2c6f58fbc4d9f17d9541542cfc24fed9b47d:/src/notes.tm diff --git a/src/notes.tm b/src/notes.tm index 0d4cac6..30d61d8 100644 --- a/src/notes.tm +++ b/src/notes.tm @@ -16,6 +16,11 @@ <\description-compact> + >A value used to supply a + in the call of a . Also known as an + \Pactual argument\Q as opposed to \Pformal argument\Q (i.e. + ). See also . + 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 @@ -50,17 +55,29 @@ a = ( b = ( c = 0 ) ); - >A construct that establishes - an association between a particular variable, function, or type and its - attributes. (See - and ). - Compare with . + The act of running (or \Pinvoking\Q) a + . See . - >A construct that stablishes the + A construct that establishes + an association between a particular variable, function, or type and its + attributes<\footnote> + See . + . Announces the properties of variables. May be a statement + consisting of a name followed by a list of + (e.g. ) or followed by an expression + with a variable (e.g. ). Compare with + . + + A construct that establishes the same associations as a declaration but also causes storage to be - allocated for the variable. (See ). + allocated for the variable<\footnote> + 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 =Dec; i++)> to cycle through the integers , 10, 11>. - >A set of characters + A set of characters used to represent hard-to-type or invisible characters. Some commonly used escape sequences in include: @@ -103,16 +120,123 @@ >Represents the character. >Represents an (e.g. - is the character<\footnote> + is the character)<\footnote> See . - ). + . >Represents a number (e.g. - is the character>). + is the character)>. + + >Represents the character (i.e. a + with value )<\footnote> + See . + + A sequence of + and that specify a computation. When + evaluated, an expression may perform useful side effects (e.g. + sends the character to \ the standard + output stream)<\footnote> + See . + . + + Arrangements of expressions may include<\footnote> + See . + : + + <\description> + A value with no operator is used<\footnote> + See . + . (e.g. the \P\Q in ) + + A variable evaluated earlier. (e.g. the 2nd + \P\Q in >) + + Operator is used between operands. (e.g. ) + + Operator is used after the operands. (e.g. + ) + + Operator is used before the operands. (e.g. + ) + + There is one operator and one operand. (e.g. + ) + + There is one operator and two operands. (e.g. + ) + + + Types of expressions may include: + + <\description> + Consists of arithmetic operators () and computes values of type. + + Usually uses comparison operators + (, \, \=, \=, ===, and !==>) and + computers answer in the type (i.e. true \P\Q or false + \P\Q). + + Consists of logical operators () and combines relational expressions to compute answers in the + type. + + Consists of statements that return + if the condition is met or otherwise. + + May consist of an ampersand () + operator and returns values. + + Consists of bitwise operators + (\, \\, ~, &, \|, and ^>) and performs + operations at the bit level. + + Involves only constants such that the + expression may be evaluated during compilation rather than + run-time<\footnote> + K&R 2nd Ed., Sec. 2.3 \PConstants\Q. + . + + + A group of statements that perform a + task. Is defined using a function that has a + parenthesized list of called + (e.g. variables for accepting values named as input + when the is called). A function definition has the + form: + + + return-typefunction-name(parameter declarations, if any) { + + declarations + + statements + + } + > + + An expression containing + the name followed by the function call operator + \P\Q. + + A declaration of + a consisting only of the function name (a.k.a. + \Pidentifier\Q) and parenthesized types so the + compiler knows how to perform -based conversions of + (e.g. truncating a into an ) in + of the function before the compiler knows the function + <\footnote> + See . + . The function prototype parameter names do not have to agree + with the function definition parameter names<\footnote> + K&R 2nd Ed., Sec 1.7 \PFunctions\Q. + . + The process of freeing memory allocated by a program but which is no longer referenced. Usually incurs a significant character in , the in , or the in .). + Generally, a variable named in the + parenthesized list in a definition. Also known as a + \Pformal argument\Q as opposed to an \Pactual argument\Q (e.g. + ). See . + stack>A region of memory for global variable storage and is permanent for the entire run of the program. Stack size is limited not by physical memory availability but by the CPU. Lifetime of @@ -153,6 +282,13 @@ memory allocated by declarations within the function is automatically freed. (See ) + An when it is + followed by a semicolon. May be grouped together using braces (i.e. + \P\Q) to form a or which is + syntactically equivalent to a single .<\footnote> + K&R 2nd Ed., Sec. 3.1 \PStatements and Blocks\Q. + + struct>(short: ) a @@ -170,6 +306,11 @@ divided into lines; each line consists of zero or more characters followed by a newline character. (See K&R 2nd Ed. Section 1.5 \PCharacter Input and Output\Q) + + A way of differentiating data stored for use + in a program. Some types include (integers), + (single-byte characters), (a short integer), (a + long integer), (a double-precision floating point number). \; @@ -211,6 +352,8 @@ Character codes include: <\description-aligned> + >Used to display a character by its . + >Used with (i.e. 16-bit integers; max value of =32\767>). @@ -224,11 +367,34 @@ >Used with and (double precision ). + + For printing strings (which are multibyte in contrast to + one-byte strings), functions from the C standard library + header file<\footnote> + See . + may need to be<\footnote> + See . + used<\footnote> + See . + (e.g. (?)). \; - \; + + + + + <\itemize> + - GNU text editor. See + . + + - text editor See . + + + + + (TODO: Insert C language linter here) \; @@ -245,31 +411,68 @@ > > > - > + > + > + > > + > + > + > + > + > + > + > + > + > + > > > + > + > + > > + > + > + > + > + > + > + > + > + > + > > > + > + > + > > > - > - > - |?>> - |?>> - |?>> - |prog-language||font-family||\\x>|hh>|?>> + > + > + > + > + > + > > heap|?>> machine-independent|?>> operand|?>> - operator|?>> - stack|?>> + > + > struct|?>> > + > + > + > + > + > + > + > + operator|?>> + stack|?>> + text stream|?>> @@ -289,6 +492,16 @@ |1.2.1Character Input and Output |.>>>>|> > + + |math-font-series||2Utilities> + |.>>>>|> + + + 2.1Text Editor |.>>>>|> + + + 2.2Linter |.>>>>|> + \ No newline at end of file