Skip to Content
C语言核心技术(原书第2版)
book

C语言核心技术(原书第2版)

by Peter Prinz, Tony Crawford
August 2017
Intermediate to advanced
798 pages
17h 44m
Chinese
China Machine Press
Content preview from C语言核心技术(原书第2版)
11
第1章
C语言基础
本章讨论
C
语言的基本特性与程序结构的主要元素。
1.1 C语言特性
C
语言是一个用途广泛的过程性编程语言。
20
世纪
70
年代,在新泽西州
Murray Hill
的
AT&T
贝尔实验室里,
Dennis Ritchie
设计出了
C
语言,目的是为了使用
Unix
操作系统和
一些通用工具,以尽可能地降低所开发软件对硬件平台的依赖程度。
C
语言的关键特性
包括:
•
源代码的可移植性
•
提供“非常接近硬件”的操作能力
•
高效率
结果,
Unix
开发者使用
C
编写出操作系统的大部分代码,仅有很少一部分涉及系统特定
硬件操作的代码采用汇编语言编写。
C
语言的祖先是无类型(
typeless
)编程语言
BCPL
(
Basic Combined Programming
Language
),它由
Martin Richards
开发;
B
语言是
BCPL
的后代,由
Ken Thompson
开发。
C
语言的新特性主要体现在它具有多种数据类型:字符、数值、数组和结构体等。
1978
年,
Brian Kernighan
和
Dennis Ritchie
出版了一本介绍
C
语言的正式书籍。作为第一个实
际意义上的
C
语言标准,他们的书籍常被称为“
K&R
”
注
1
。
C
具有相当高的可移植性,
这归功于它紧凑的核心语言,仅包含了极少与硬件相关的元素。比方说,
C
语言本身不
注
1
:
为了体现第一个
ANSI C
标准,此书推出了第
2
版。书名为《
C
程序设计语言(第
2
版
·
新
版)》,作者是
Brian W. Kernighan
和
Dennis M. Ritchie
(由
Prentice ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

算法精讲视频课程:24篇系列讲座

算法精讲视频课程:24篇系列讲座

罗伯特·塞奇威克, 凯文·韦恩(Kevin Wayne)

Publisher Resources

ISBN: 9787111562207