Sun Studio 12:C 用户指南

H.2 关键字

下面几个表列出 ISO C 标准、Sun ISO C 编译器以及 Sun 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

 

 

 

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

下面列出 Sun C 中的关键字。

表 H–3 Sun 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