C语言中的关键字一共有32个,这些关键字用于定义C语言的基本结构和功能。以下是C语言的所有关键字列表:
1. auto
2. break
3. case
4. char
5. const
6. continue
7. default
8. do
9. double
10. else
11. enum
12. extern
13. float
14. for
15. goto
16. if
17. inline
18. int
19. long
20. register
21. restrict
22. return
23. short
24. signed
25. sizeof
26. static
27. struct
28. switch
29. typedef
30. union
31. unsigned
32. void
33. volatile
34. while
虽然C99标准引入了`inline`关键字,但并非所有编译器都支持它,尤其是在旧版编译器中。`restrict`是C99标准引入的,并不是所有C编译器都支持它。
发表回复
评论列表(0条)