C18 (C語言標準)

C18(也被稱為為C17)是ISO/IEC 9899:2018的非正式名稱[1],是截止到2020年6月為止最新的C語言編程標準。它於2017年編寫並於2018年6月發布,被用來替代C11標準(即ISO/IEC 9899:2011)。[2]

C18標準將被C23標準所取代。[3][4]

與C11的差別 編輯

C18沒有引入新的語言特性,只對C11進行了補充和修正。[2]

__STDC_VERSION__的值被改為201710L.

編譯器支援 編輯

支援C18的編譯器有:

另請參見 編輯

參照 編輯

  1. ^ ISO/IEC 9899:2018 - Information technology -- Programming languages -- C. www.iso.org. [2020-06-08]. (原始內容存檔於2018-08-10). 
  2. ^ 2.0 2.1 The Standard - C. www.iso-9899.info. [2020-06-08]. (原始內容存檔於2005-02-25). 
  3. ^ WG 14 Document log. www.open-std.org. [2020-06-08]. (原始內容存檔於2014-08-30). 
  4. ^ https://en.wikipedia.org/wiki/C23_(C_standard_revision)
  5. ^ Using the GNU Compiler Collection (GCC): C Dialect Options. gcc.gnu.org. [2020-06-08]. (原始內容存檔於2020-06-06). 
  6. ^ 存档副本. [2020-06-08]. (原始內容存檔於2019-09-10). 
  7. ^ IAR Information Center for Arm - Release notes. netstorage.iar.com. [2020-06-08]. (原始內容存檔於2019-05-29). 
  8. ^ C11 and C17 Standard Support Arriving in MSVC. devblogs.microsoft.com. 14 September 2020 [2021-10-16]. (原始內容存檔於2021-05-11). 

外部連結 編輯

前任者:
C11
C語言標準 繼任者:
C2x