🔴 زبان C در یونیکس توسعه یافته است ولی محدود به سیستم عامل یونیکس نیست و اگر چه به عنوان یک system programming language شناخته میشود، چون برای نوشتن سیستم عامل و کامپایلرها مناسب است، ولی میتواند برای نوشتن طیف وسیعی از برنامهها در حوزههای مختلف نیز به کار برود.
🔴 زبان B در سال ۱۹۷۰ توسط کن تامسون برای اولین سیستم یونیکس روی کامپیوترهای DEC PDP-7 ابداع شد.
BCPL (Martin Richards) --> B (Ken thompson) --> C (Dennis Ritchie)

🔵 BCPL and B are "typeless" languages. By contrast, C provides a variaty of data types:
🔵 Functions may return values of basic types, structures, unions or pointers. example
🔴 تابعها نمیتوانند به صورت تو در تو تعریف شوند. تابعها میتوانند در فایلهای جداگانه قرار داده شوند که به صورت جداگانه هم کامپایل شوند.
🔵 Variables may be internal to a function, external but known only withing a single source file, or visible to the entire program.
🔵 A preprocessing step performs macro substitution on program text, inclusionof other source files, and conditional compilation.
🔵 C provides no operations to deal directly with composite objects such as character strings, sets, lists, or arrays. There are no operations that manipulate an entire array or string, although structures may be copied as a unit.

🔵 C offers only straightforward, single-thread control flow: test, loops, grouping, and subprograms, but not multiprogramming, parallel operations, synchronization, or coroutines.
🔵 ANSI C: started in 1983, completed in late 1988.
🔵 Structure assignments and enumerations, which had been widely available, are now officially part of the language.

🔴 فلسفهی C بر این اصل استوار است که برنامهنویس میداند چه میکند.
🔴
اولویت بعضی operator ها در C اشتباه تعریف شده است! مثلا
اولویت عملگرهای بیتی & و | و ^ کمتر از عملگرهای == و != است.
مثال
🔵 Chapter 7 describes the standard library, which provides a common interface to the operating system. This library is defined by the ANSI standard and is meant to be supported on all machines that support C, so programs that use it for input, output, and other operating system access can be moved from one system to another without change.
🔴 فصل ۸ یک اینترفیس بین برنامههای C و سیستم عامل یونیکس را با تمرکز بر ورودی و خروجی، file system و storage allocation توصیف میکند. اگرچه بخشی از این فصل مختص سیستمهای یونیکس است، برنامهنویسانی که از سیستمهای دیگر استفاده میکنند باز هم موارد مفیدی در این فصل خواهند یافت از قبیل اینکه نسخهی بخصوصی از کتابخانهی استاندارد چگونه پیادهسازی شده است و پیشنهاداتی در مورد portability.
🔴 پیوستهای A و B برای استفادهی برنامهنویسان است و نه نویسندگان کامپایلر. آنها باید از مستندات رسمی ANSI استفاده کنند.