简体   繁体   中英

Is `*` (the asterisk) a keyword in C11?

In section 6.4.1 of the C11 standard an asterisk appears in the list of keywords:

keyword: one of
  auto      ∗ if        unsigned
  break       inline    void
  ...

Does this indicate that * is a keyword?

If not, what is its use here indicating?

It is a diff mark.

In the abstract (p.1) of N1570 :

Changes from the previous draft (N1539) are indicated by ''diff marks'' in the right margin: deleted text is marked with ''∗'', new or changed text with '' ''.

In the N1539 draft, alignof was a keyword, appearing on the first row of that table:

N1750 dropped alignof and replaced it with _Alignof .

The placement of the "*" does seem slightly odd, but it definitely doesn't refer to the * operator.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM