#3
by みけCAT » 3年前
コンパイラによっては、全角文字も使えることがあります。
https://wandbox.org/permlink/j9v5xoCXCBvZdRDS
N1570 6.4.2 Identifiers より引用
コード:
identifier:
identifier-nondigit
identifier identifier-nondigit
identifier digit
identifier-nondigit:
nondigit
universal-character-name
other implementation-defined characters
nondigit: one of
_ a b c d e f g h i j k l m
n o p q r s t u v w x y z
A B C D E F G H I J K L M
N O P Q R S T U V W X Y Z
digit: one of
0 1 2 3 4 5 6 7 8 9
An implementation may allow multibyte characters
that are not part of the basic source character set to appear in identifiers; which characters
and their correspondence to universal character names is implementation-defined.
そもそも「C言語の」識別子だとは一言も書いてないですけどね…
コンパイラによっては、全角文字も使えることがあります。
[url=https://wandbox.org/permlink/j9v5xoCXCBvZdRDS]https://wandbox.org/permlink/j9v5xoCXCBvZdRDS[/url]
[url=http://chimera.roma1.infn.it/SP/COMMON/iso-iec-9899-1990.pdf]N1570[/url] 6.4.2 Identifiers より引用
[quote][code]
identifier:
identifier-nondigit
identifier identifier-nondigit
identifier digit
identifier-nondigit:
nondigit
universal-character-name
other implementation-defined characters
nondigit: one of
_ a b c d e f g h i j k l m
n o p q r s t u v w x y z
A B C D E F G H I J K L M
N O P Q R S T U V W X Y Z
digit: one of
0 1 2 3 4 5 6 7 8 9
[/code][/quote]
[quote]
An implementation may allow multibyte characters
that are not part of the basic source character set to appear in identifiers; which characters
and their correspondence to universal character names is implementation-defined.
[/quote]
そもそも「C言語の」識別子だとは一言も書いてないですけどね…