hello this is the title
Hello, World
Here is some C practice.
Temperature Conversions
Here is the basic temperature conversion example from Section 1.2 of Kernighan and Ritchie.
Here is the output:
Right-Align Degrees
Prefer right-aligning the columns.
Here is the output:
Change to Floats
Also add a heading to table (Exercise 1-3)
Here is the output:
Celsius to Fahrehheit
As per Exercise 1-4.
Here is the output:
Using For Statement
Here is the output:
Reversing Order
Here is the output:
Symbolic Constants
Here is the output:
Character Input and Output
Here is the input which will be fed to this programme:
Here is the transcript:
With assignment in while condition
Here is the input which will be fed to this programme:
Here is the transcript:
Testing value of comparison
Verifying that the expression c != EOF is 0 or 1, as per Exercise 1-6.
Here is the input which will be fed to this programme:
Here is the transcript:
Print value of EOF
As per Exercise 1-7
Result of running this:
Section 1.5.2 Character Counting
Here is the input which will be fed to this programme:
Result of running this:
Increment operator fun!
count chars with for loop
Here is the input which will be fed to this programme:
Result of running this:
Section 1.5.3 Line Counting
Here is the input which will be fed to this programme:
Result of running this:
Count Blanks, Tabs, Newlines
As per Exercise 1-8.
Here is the input which will be fed to this programme:
Result of running this:
Coalesce Multiple Blanks
As per Exercise 1-9.
Here is the input which will be fed to this programme:
Result of running this:
Make Spaces Visible
As per Exercise 1-10.
Note that ‘else’, && have not been covered yet so writing this without using these.
Here is the input which will be fed to this programme:
Result of running this:
1.5.4 Word Counting
Here is the input which will be fed to this programme:
Result of running this:
Print Input One Word Per Line
As per Exercise 1-12
Here is the input which will be fed to this programme:
Result of running this:
1.6 Arrays
Here is the input which will be fed to this programme:
Result of running this:
Histogram
As per exercise 1-13
Here is the input which will be fed to this programme:
Result of running this:
Vertical histogram.
Here is the input which will be fed to this programme:
Result of running this:
histogram of all chars
As per Exercise 1-14.
Here is the input which will be fed to this programme:
Result of running this:
1.7 Functions
Result of running this:
Exercise 1-15 rewrite temperature conversion using functions.
Result of running this:
1.9 Character Arrays
Here is the input which will be fed to this programme:
Result of running this:
Modified as per Exercise 1-16 to still print correct length if lines are too long.
Here is the input which will be fed to this programme:
Result of running this:
Exercise 1-17 print all lines longer than 80 chars.
Here is the input which will be fed to this programme:
Result of running this:
Trailing Spaces
Exercise 1-18 remove trailing blanks and tabs.
Here is the input which will be fed to this programme:
Result of running this:
Reverse
Here is the input which will be fed to this programme:
Result of running this:
1.10 External Variables and Scope
Here is the input which will be fed to this programme:
Result of running this:
Source of This Document
Dexy config JSON file:
HTML source:
<h1>Hello, World</h1> Here is some C practice. {{ d['001.c|pyg'] }} <pre> {{ d['001.c|c'] }} </pre> <h1>Temperature Conversions</h1> Here is the basic temperature conversion example from Section 1.2 of Kernighan and Ritchie. {{ d['002.c|pyg'] }} Here is the output: <pre> {{ d['002.c|c'] }} </pre> <h2>Right-Align Degrees</h2> Prefer right-aligning the columns. {{ d['003.c|pyg'] }} Here is the output: <pre> {{ d['003.c|c'] }} </pre> <h2>Change to Floats</h2> Also add a heading to table (Exercise 1-3) {{ d['004.c|pyg'] }} Here is the output: <pre> {{ d['004.c|c'] }} </pre> <h2>Celsius to Fahrehheit</h2> As per Exercise 1-4. {{ d['005.c|pyg'] }} Here is the output: <pre> {{ d['005.c|c'] }} </pre> <h2>Using For Statement</h2> {{ d['006.c|pyg'] }} Here is the output: <pre> {{ d['006.c|c'] }} </pre> <h2>Reversing Order</h2> {{ d['007.c|pyg'] }} Here is the output: <pre> {{ d['007.c|c'] }} </pre> <h1>Symbolic Constants</h1> {{ d['008.c|pyg'] }} Here is the output: <pre> {{ d['008.c|c'] }} </pre> <h1>Character Input and Output</h1> {{ d['009.c|pyg'] }} Here is the input which will be fed to this programme: <pre> {{ d['009-input.txt|dexy'] }} </pre> Here is the transcript: <pre> {{ d['009.c|cint'] }} </pre> <h2>With assignment in while condition</h2> {{ d['010.c|pyg'] }} Here is the input which will be fed to this programme: <pre> {{ d['010-input.txt|dexy'] }} </pre> Here is the transcript: <pre> {{ d['010.c|cint'] }} </pre> <h2>Testing value of comparison</h2> Verifying that the expression c != EOF is 0 or 1, as per Exercise 1-6. {{ d['011.c|pyg'] }} Here is the input which will be fed to this programme: <pre> {{ d['011-input.txt|dexy'] }} </pre> Here is the transcript: <pre> {{ d['011.c|cint'] }} </pre> <h2>Print value of EOF</h2> As per Exercise 1-7 {{ d['012.c|pyg'] }} Result of running this: <pre> {{ d['012.c|c'] }} </pre> <h2>Section 1.5.2 Character Counting</h2> {{ d['013.c|pyg'] }} Here is the input which will be fed to this programme: <pre> {{ d['013-input.txt|dexy'] }} </pre> Result of running this: <pre> {{ d['013.c|cint'] }} </pre> <h4>Increment operator fun!</h4> {{ d['014.c|pyg'] }} <pre> {{ d['014.c|c'] }} </pre> <h3>count chars with for loop</h3> {{ d['015.c|pyg'] }} Here is the input which will be fed to this programme: <pre> {{ d['015-input.txt|dexy'] }} </pre> Result of running this: <pre> {{ d['015.c|cint'] }} </pre> <h2>Section 1.5.3 Line Counting</h2> {{ d['016.c|pyg'] }} Here is the input which will be fed to this programme: <pre> {{ d['016-input.txt|dexy'] }} </pre> Result of running this: <pre> {{ d['016.c|cint'] }} </pre> <h3>Count Blanks, Tabs, Newlines</h3> As per Exercise 1-8. {{ d['017.c|pyg'] }} Here is the input which will be fed to this programme: <pre> {{ d['017-input.txt|dexy'] }} </pre> Result of running this: <pre> {{ d['017.c|cint'] }} </pre> <h3>Coalesce Multiple Blanks</h3> As per Exercise 1-9. {{ d['018.c|pyg'] }} Here is the input which will be fed to this programme: <pre> {{ d['018-input.txt|dexy'] }} </pre> Result of running this: <pre> {{ d['018.c|cint'] }} </pre> <h3>Make Spaces Visible</h3> As per Exercise 1-10. Note that 'else', && have not been covered yet so writing this without using these. {{ d['019.c|pyg'] }} Here is the input which will be fed to this programme: <pre> {{ d['019-input.txt|dexy'] }} </pre> Result of running this: <pre> {{ d['019.c|cint'] }} </pre> <h2>1.5.4 Word Counting</h2> {{ d['020.c|pyg'] }} Here is the input which will be fed to this programme: <pre> {{ d['020-input.txt|dexy'] }} </pre> Result of running this: <pre> {{ d['020.c|cint'] }} </pre> <h3>Print Input One Word Per Line</h3> As per Exercise 1-12 {{ d['021.c|pyg'] }} Here is the input which will be fed to this programme: <pre> {{ d['021-input.txt|dexy'] }} </pre> Result of running this: <pre> {{ d['021.c|cint'] }} </pre> <h2>1.6 Arrays</h2> {{ d['022.c|pyg'] }} Here is the input which will be fed to this programme: <pre> {{ d['022-input.txt|dexy'] }} </pre> Result of running this: <pre> {{ d['022.c|cint'] }} </pre> <h4>Histogram</h4> As per exercise 1-13 {{ d['023.c|pyg'] }} Here is the input which will be fed to this programme: <pre> {{ d['023-input.txt|dexy'] }} </pre> Result of running this: <pre> {{ d['023.c|cint'] }} </pre> Vertical histogram. {{ d['024.c|pyg'] }} Here is the input which will be fed to this programme: <pre> {{ d['024-input.txt|dexy'] }} </pre> Result of running this: <pre> {{ d['024.c|cint'] }} </pre> <h3>histogram of all chars</h3> As per Exercise 1-14. {{ d['025.c|pyg'] }} Here is the input which will be fed to this programme: <pre> {{ d['025-input.txt|dexy'] }} </pre> Result of running this: <pre> {{ d['025.c|cint'] }} </pre> <h1>1.7 Functions</h1> {{ d['026.c|pyg'] }} Result of running this: <pre> {{ d['026.c|c'] }} </pre> Exercise 1-15 rewrite temperature conversion using functions. {{ d['027.c|pyg'] }} Result of running this: <pre> {{ d['027.c|c'] }} </pre> <h1>1.9 Character Arrays</h1> {{ d['028.c|pyg'] }} Here is the input which will be fed to this programme: <pre> {{ d['028-input.txt|dexy'] }} </pre> Result of running this: <pre> {{ d['028.c|cint'] }} </pre> Modified as per Exercise 1-16 to still print correct length if lines are too long. {{ d['029.c|pyg'] }} Here is the input which will be fed to this programme: <pre> {{ d['029-input.txt|dexy'] }} </pre> Result of running this: <pre> {{ d['029.c|cint'] }} </pre> Exercise 1-17 print all lines longer than 80 chars. {{ d['030.c|pyg'] }} Here is the input which will be fed to this programme: <pre> {{ d['030-input.txt|dexy'] }} </pre> Result of running this: <pre> {{ d['030.c|cint'] }} </pre> <h4>Trailing Spaces</h4> Exercise 1-18 remove trailing blanks and tabs. {{ d['031.c|pyg'] }} Here is the input which will be fed to this programme: <pre> {{ d['031-input.txt|dexy'] }} </pre> Result of running this: <pre> {{ d['031.c|cint'] }} </pre> <h4>Reverse</h4> {{ d['032.c|pyg'] }} Here is the input which will be fed to this programme: <pre> {{ d['032-input.txt|dexy'] }} </pre> Result of running this: <pre> {{ d['032.c|cint'] }} </pre> <h1>1.10 External Variables and Scope</h1> {{ d['033.c|pyg'] }} <div id="bookmark"></div> Here is the input which will be fed to this programme: <pre> {{ d['033-input.txt|dexy'] }} </pre> Result of running this: <pre> {{ d['033.c|cint'] }} </pre> <h1 id="source">Source of This Document</h1> Dexy config JSON file: <pre> {{ d['journal.json|dexy'] }} </pre> HTML source: <pre> {{ d['journal.html|pyg'] }} </pre>
hello this is the title
Hello, World
Here is some C practice.
Temperature Conversions
Here is the basic temperature conversion example from Section 1.2 of Kernighan and Ritchie.
Here is the output:
Right-Align Degrees
Prefer right-aligning the columns.
Here is the output:
Change to Floats
Also add a heading to table (Exercise 1-3)
Here is the output:
Celsius to Fahrehheit
As per Exercise 1-4.
Here is the output:
Using For Statement
Here is the output:
Reversing Order
Here is the output:
Symbolic Constants
Here is the output:
Character Input and Output
Here is the input which will be fed to this programme:
Here is the transcript:
With assignment in while condition
Here is the input which will be fed to this programme:
Here is the transcript:
Testing value of comparison
Verifying that the expression c != EOF is 0 or 1, as per Exercise 1-6.
Here is the input which will be fed to this programme:
Here is the transcript:
Print value of EOF
As per Exercise 1-7
Result of running this:
Section 1.5.2 Character Counting
Here is the input which will be fed to this programme:
Result of running this:
Increment operator fun!
count chars with for loop
Here is the input which will be fed to this programme:
Result of running this:
Section 1.5.3 Line Counting
Here is the input which will be fed to this programme:
Result of running this:
Count Blanks, Tabs, Newlines
As per Exercise 1-8.
Here is the input which will be fed to this programme:
Result of running this:
Coalesce Multiple Blanks
As per Exercise 1-9.
Here is the input which will be fed to this programme:
Result of running this:
Make Spaces Visible
As per Exercise 1-10.
Note that ‘else’, && have not been covered yet so writing this without using these.
Here is the input which will be fed to this programme:
Result of running this:
1.5.4 Word Counting
Here is the input which will be fed to this programme:
Result of running this:
Print Input One Word Per Line
As per Exercise 1-12
Here is the input which will be fed to this programme:
Result of running this:
1.6 Arrays
Here is the input which will be fed to this programme:
Result of running this:
Histogram
As per exercise 1-13
Here is the input which will be fed to this programme:
Result of running this:
Vertical histogram.
Here is the input which will be fed to this programme:
Result of running this:
histogram of all chars
As per Exercise 1-14.
Here is the input which will be fed to this programme:
Result of running this:
1.7 Functions
Result of running this:
0 1 1 1 2 -3 2 4 9 3 8 -27 4 16 81 5 32 -243 6 64 729 7 128 -2187 8 256 6561 9 512 -19683Exercise 1-15 rewrite temperature conversion using functions.
Result of running this:
1.9 Character Arrays
Here is the input which will be fed to this programme:
Result of running this:
Modified as per Exercise 1-16 to still print correct length if lines are too long.
Here is the input which will be fed to this programme:
Result of running this:
Exercise 1-17 print all lines longer than 80 chars.
Here is the input which will be fed to this programme:
Result of running this:
Trailing Spaces
Exercise 1-18 remove trailing blanks and tabs.
Here is the input which will be fed to this programme:
Result of running this:
Reverse
Here is the input which will be fed to this programme:
Result of running this:
1.10 External Variables and Scope
Here is the input which will be fed to this programme:
Result of running this:
Source of This Document
Dexy config JSON file:
HTML source: