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 002 to 003 - 2.64 % Completion

Secondly a great contribution of the standard is the defining of a library companion to C.
This library:
specifies functions for accessing the OS like for:
> reading and writing files
> formatted input/output
> memory allocation
> string manipulation

For this library, headers provide access to declarations of functions and data types uniformly. Programs using it  to communicate with the host machine will be assured of compatibility. Most of the library is structured along the lines of the standard I/O \library of the Unix system.

The runtime library needed to implement self-contained program is small since the data types and control structures used by C are directly supported by most computers.
The standard library functions have to be called explicitly so they are not connected to by default. In this way they can be avoided if they are not needed. Most of these functions can be written in C and are portable, except for those that are OS specific because they need to direct the system they run at directly.

C is machine agnostic, it can run on most computers.  An executable created from C source code can run on many computers. The C standard describes sets of constants that suit specific architectures, in order to make the programs easily adjustable to different kinds of hardware.

C is originally not a strongly typed language but over the years it's type checking has been strengthened.

Originally C allowed interchanging pointers and integers, although it was seen as bad practice. But this freedom has been eliminated from the language and now declarations and explicit conversions are a must. Good compilers already enforced this before the ANSI standard became official.

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. 17th, 2026 03:36 am
Powered by Dreamwidth Studios