Oracle Solaris Studio 12.2:C 用户指南

H.2 关键字

下面几个表列出 ISO C 标准、Solaris Studio ISO C 编译器以及 Solaris Studio C 编译器的关键字。

第一个表列出 ISO C 标准定义的关键字。

表 H–2 ISO C 标准关键字

_Bool1

_Complex1

_Imaginary1

auto

break

case

char

const

continue

default

do

double

else

enum

extern

float

for

goto

if

inline1

int

long

register

restrict

return

short

signed

sizeof

static

struct

switch

typedef

union

unsigned

void

volatile

while

 

 

 

1 只能使用 -xc99=all 定义

C 编译器还定义一个附加关键字 asm。但是,在 -Xc 模式下不支持 asm。

下面列出 Solaris Studio C 中的关键字。

表 H–3 Solaris Studio C (K&R) 关键字

asm

auto

break

case

char

continue

default

do

double

else

enum

extern

float

for

fortran

goto

if

int

long

register

return

short

sizeof

static

struct

switch

typedef

union

unsigned

void

while