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
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