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版)
22
|
第
1
章
除双字符组和三字符组外,还有另一种标点符号字符的替代方式。头文件
iso646.h
包含了一些宏,它们定义了
C
语言的逻辑运算符和位运算符(
bitwise operator
)的替
代表示方式,例如用
and
替代
&&
,用
xor
替代
^
。更多细节请参阅第
16
章。
1.6 标识符
标识符(
identifier
)用于引用变量、函数、宏、结构以及其他在
C
程序中所定义的对
象。标识符可以包含下面的字符:
•
基本字符集的字母,
a
~
z
与
A
~
Z
(标识符区分大小写);
•
下划线字符
_
;
•
十进制数
0
~
9
,标识符的第一个字符不可以为十进制数;
•
用来代表其他语言字母和数字的通用字符名。
在
C
语言标准中的
AnnexD
部分,定义了合法的通用字符,它等于
ISO/IEC TR 10176
标准
所定义字符减去基本字符集。
标识符中也可以使用多字节字符。然而,由
C
语言的实现版本来决定哪些多字节字符可
以使用,以及它们所对应的通用字符名是什么。
C
语言保留(
reserved
)了下面的
44
个关键字,对编译器来说,它们每个都有特定的意
义,并且都不可以被用作标识符:
auto extern short while
break float signed _Alignas
case for sizeof _Alignof
char goto static _Atomic
const if struct _Bool
continue inline ...
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