שפת C/נספחים: הבדלים בין גרסאות בדף

תוכן שנמחק תוכן שנוסף
Atavory (שיחה | תרומות)
מאין תקציר עריכה
Atavory (שיחה | תרומות)
אין תקציר עריכה
שורה 44:
{{להשלים}}
 
{| border="1" cellpadding="1"
ANSI C (C89)/ISO C (C90) keywords:
|-
! מילה שמורה
! משמעות
! היכן ראינו?
|-
! auto
|
|
|-
! break
|
|
|-
! case
|
|
|-
! char
|
|
|-
! const
|
|
|-
! continue
|
|
|-
! default
|
|
|-
! do
|
|
|-
! double
|
|
|-
! else
|
|
|-
! enum
|
|
|-
! extern
|
|
|-
! float
|
|
|-
! for
|
|
|-
! goto
|
|
|-
! if
|
|
|-
! int
|
|
|-
! long
|
|
|-
! register
|
|
|-
! return
|
|
|-
! short
|
|
|-
! signed
|
|
|-
! sizeof
|
|
|-
! static
|
|
|-
! struct
|
|
|-
! return
|
|
|-
! switch
|
|
|-
! typedef
|
|
|-
! unsigned
|
|
|-
! void
|
|
|-
! volatile
|
|
|-
! while
|}
 
===מילים שמורות חדשות===
* auto
* _Bool
* break
*_Complex
* case
*_Imaginary
* char
*inline
* const
* restrict
* continue
* default
* do
 
===מילים שמורות בחלק מהמהדרים===
*asm,
*cdecl,
*far,
*fortran,
*huge,
*interrupt,
*near,
*pascal,
*typeof
 
===מילים לא-שמורות במהדרים ישנים===
* double
* else
* enum
* extern
* float
* for
* goto
* if
 
*const
*enum
 
*signed
* int
*void
* long
*volatile
* register
*[[שפת C/נספחים#מילים שמורות חדשות|מילים שמורות חדשות]]
* return
* short
* signed
* sizeof
* static
 
 
* struct
* switch
* typedef
* union
* unsigned
* void
* volatile
* while
 
Keywords added to ISO C (C99) (Supported only in new compilers):
 
* _Bool
* _Complex
 
 
* _Imaginary
* inline
 
 
* restrict
 
Specific compilers may (in a non-standard-compliant mode) also treat some other words as keywords, including asm, cdecl, far, fortran, huge, interrupt, near, pascal, typeof.
 
Very old compilers may not recognize some or all of the C89 keywords const, enum, signed, void, volatile as well as the C99 keywords.