sorcerer_see: (Default)
PS I synthesize here in my own words what K&R teach, re-write all their example programs, character by character, solve all the C exercises they hand out. I comment to what K&R teach cursively. I do not copy-paste anything from the book! 

TCPL 2Ed - Page 001 to 001 - 1.88% Completion

Examples of fundamental types in C:
- characters
- integers
- floating-point numbers of various sizes

Derived types in C are created with pointers, arrays, structures, unions.

From operands and operators expressions are formed. Expressions ,including assignment or function calls can be statements. Pointers provide machine-independent address arithmetic.

C offers the fundamental control structures required for well structured programs:

- statement grouping
- if-else decision making
- selection of one of several possible cases (switch)
- looping with the termination test at the top (while, for) or at the bottom (do)
- early loop exit (break)

In C functions may return values of
- basic types
- structures
- unions
- pointers

In C
- functions may be called recursively
- local variables are typically 'automatic', or created with each invocation.
- function definitions may not be nested
- variables may be declared in a block-structured fashion
- the functions of a C program may exist in separate source files that are compiled separately
- variables may be
> internal to a function
> external but known only within a single source file
> visible to the whole program

Profile

sorcerer_see: (Default)
sorcerer_see

October 2025

S M T W T F S
    12 34
56 7 8 9 10 11
12 1314 15 16 1718
19 2021 22 23 2425
2627 28293031 

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 16th, 2026 08:51 am
Powered by Dreamwidth Studios