YOUR C LEARNING COMPANION

Kahan se padhein?

Learning path
Language ki detailsChapter 20 of 73

C keyword index: C17 aur C23

Har standard keyword spelling ko edition, role aur deeper explanation link ke saath browse karein.

7 min readFoundationsC17 + C23 notes
Offline reading
Is chapter mein10 sections

Is chapter ko lookup page ki tarah use karein. Keyword dhoondhein, uski spelling kis C edition mein aayi check karein aur explanation ke liye concept link kholein. C samajhne se pehle poori list yaad karna zaroori nahi.

1. Spelling dhoondhein, phir selected standard check karein

C89/C90 ne 32 keywords introduce kiye; C99 mein total 37 hua; C11/C17 mein 44 hain. C23 mein 54 primary keyword spellings aur paanch older alternatives hain: is index mein 59 recognized spellings. Alternatives _Alignas, _Alignof, _Bool, _Static_assert aur _Thread_local hain; C23 mein yeh obsolescent hain, simply remove nahi hue.

Neeche ke “introduced” groups historical hain. C23 auto inference jaise older keyword roles bhi badalta hai. alignas, alignof, bool, static_assert, thread_local unke underscored alternatives ki preferred spellings hain. Feature reservation aur availability alag hain: atomic, complex/imaginary aur decimal facilities ke applicable optional-support rules hain.

Jump karein: C89/C90, C99, C11/C17, ya C23 additions. Exact spelling ke liye browser ka Find command use kar sakte hain.

2. C89/C90: original 32

KeywordRole / version noteAage padhein
autoAutomatic storage; C23 mein kuch declaration forms mein type inference bhiTheory
breakNearest loop ya switch se exitTheory
caseswitch ke andar labeled branchTheory
charCharacter/small-integer type; sizeof(char) 1 haiTheory
constIs qualified type se read-only access; general compile-time constant ki guarantee nahiTheory
continueNearest loop continue hota hai (for ka update phir bhi run hota hai)Theory
defaultswitch ki default labeled branchTheory
doAisa loop jisme condition se pehle body run hoti haiTheory
doubleFloating-point type; long double ek aur floating type haiTheory
elseif ki alternative branchTheory
enumEnumerated type aur enumeration constantsTheory
externLinkage wala object/function declare karta hai; initialized object declaration definition bhi ho sakti haiTheory
floatFloating-point typeTheory
forInitialization, condition aur update clauses wala loopTheory
gotoSame function ke label par jumpTheory
ifScalar expression ke basis par conditional executionTheory
intInteger type; required minimum ke baad exact range implementation par dependTheory
longlong int, long long int aur long double mein type specifierTheory
registerAutomatic storage aur optimization suggestion; direct unary & se address nahi le sakteTheory
returnFunction se return, optionally value ke saathTheory
shortShort integer types ka specifierTheory
signedSigned integer types ka specifierTheory
sizeofType ya expression ka size C bytes mein; result type size_tTheory
staticObjects ki static storage duration, file scope par internal linkage; array parameters mein bhi useTheory
structOrdered members wala structure typeTheory
switchInteger controlling expression ke basis par selectionTheory
typedefType ka alias; naya distinct type nahiTheory
unionAisa type jiske members storage share karte hainTheory
unsignedUnsigned integer types ka specifierTheory
voidKoi value nahi; void * generic object-pointer type haiTheory
volatileAccesses ki special observable semantics; thread synchronization nahiTheory
whileHar iteration se pehle condition check karne wala loopTheory

3. C99: paanch additional spellings

KeywordRole / version noteAage padhein
inlineSpecial definition/linkage rules wala function specifier; call expansion guaranteed nahiTheory
restrictOptimization ke liye pointer-access/aliasing contractTheory
_BoolBoolean type; C23 mein bool ki purani alternative spellingTheory
_ComplexComplex floating types; later standards mein support conditionalTheory
_ImaginaryOptional imaginary types ke liye reserved keyword; support guaranteed nahiTheory

4. C11/C17: saat additional spellings

C17 corrections incorporate karke C11 ki yeh spellings retain karta hai. _Noreturn recognized rehta hai, lekin C23 mein [[noreturn]] ke favor mein deprecated hai.

KeywordRole / version noteAage padhein
_AlignasObject alignment specifier; alignas ki purani spellingTheory
_AlignofType ki alignment query; alignof ki purani spellingTheory
_AtomicAtomic type specifier/qualifier; poora algorithm automatically atomic nahi hotaTheory
_GenericTranslation time par type ke basis par expression selectTheory
_NoreturnFunction caller ko return nahi karta; C23 mein [[noreturn]] preferredTheory
_Static_assertCompile-time assertion; static_assert ki purani spellingTheory
_Thread_localThread storage duration; thread_local ki purani spellingTheory

5. C23: pandrah additional spellings

Yeh C23 language spellings hain. Older standards mein kuch names standard-header macros se milte the; typeof compiler extension bhi tha. Yeh history version distinction remove nahi karti.

KeywordRole / version noteAage padhein
alignasAlignment specifier; ab header macro ke bina keywordTheory
alignofAlignment-query operator; ab keywordTheory
boolBoolean type; ab keywordTheory
constexprConstrained initialization wala named constant object; const imply karta hai, C++ constexpr function nahiTheory
falseBoolean false predefined constantTheory
nullptrNull-pointer predefined constant; <stddef.h> iske type ko nullptr_t naam deta haiTheory
static_assertCompile-time assertion; ab keywordTheory
thread_localThread storage duration; ab keywordTheory
trueBoolean true predefined constantTheory
typeofType name ya expression se type derive karta hai; variably modified types mein evaluation care chahiyeTheory
typeof_unqualtypeof jaisa, top-level aur atomic qualification remove karta hai; pointed-to const rehta haiTheory
_BitIntBit-precise integer type specifier, _BitInt(N) ki form meinTheory
_Decimal32Decimal floating type, sirf decimal floating support wali implementations parTheory
_Decimal64Decimal floating type, sirf decimal floating support wali implementations parTheory
_Decimal128Decimal floating type, sirf decimal floating support wali implementations parTheory

6. A familiar library name is not automatically a keyword

printf library function name hai. size_t aur C23 nullptr_t library headers ke type names hain. NULL macro hai aur [[noreturn]] ka noreturn attribute name hai. include/define jaise preprocessing directive names extra ordinary C keywords nahi. Library aur implementation names ke doosre reservation rules phir bhi apply karte hain.

C17 mein bool/true/false <stdbool.h>, alignas/alignof <stdalign.h>, static_assert <assert.h>, aur supported facility mein thread_local <threads.h> se milte hain. Agla complete C17 example teen header routes demonstrate karta hai; spellings ko C17 language keywords claim nahi karta.

Complete C17 program
#include <assert.h>
#include <stdbool.h>
#include <stdalign.h>

static_assert(sizeof(char) == 1, "one C byte");

int main(void)
{
    alignas(int) int value = 4;
    bool ready = true;
    assert(ready && value == 4);
    return 0;
}

C23 primary spellings ko in macro dependencies ke bina language features banata hai. Isliye keyword list ko standard batana chahiye; har familiar token ko timeless syntax nahi samajhna chahiye.

7. Thought check: reserved spelling support prove karti hai?

Compiler _Decimal64 ko reserved recognize karta hai. Kya decimal floating arithmetic available prove hui?

Nahi. Reservation ordinary identifier use rokta hai; availability implementation ke required/optional feature rules aur documented support se aati hai. Language mode select karein, facility check karein, aur rely karne se pehle relevant capability test compile karein.

Sources aur aage ki reading

Primary references: WG14 N1570 6.4.1, 7.2, 7.15, 7.18, and 7.26; N3096 6.4.1, 6.4.4.5, 6.7.1, 6.7.2.5, and 6.7.9; WG14 N3096 (C23 notes). These are public committee drafts; the examples here use a C17 baseline.

Aage badhne se pehle

  • Yeh index corresponding theory chapters se linked lookup aid hai.
  • C17 aur C23 mein keyword status aur familiar header macros alag ho sakte hain.
  • Spelling pehchaanna uski constraints aur useful contexts samajhne ki shuruaat hai.
In ideas ko alag rakhein
Keyword / Library name
Reserved language spelling aur header se supplied name different mechanisms hain.
Apne words mein samjhaayein

Apni C edition mein familiar spelling keyword hai ya header macro, yeh kaise check karenge?

Optional: bolkar samjhein ya note rakhein. Tayyar hon toh aage badh sakte hain.

Apni understanding check karein

Optional hai. Answers save ya send nahi hote; chapter kabhi lock nahi hota.

Kya printf, C language keyword hai?
Har choice ki explanation padhein
  1. Haan, har standard library name keyword hai.

    Library identifiers aur language keywords alag categories hain.

  2. Nahi. Yeh <stdio.h> se declared standard library function ka naam hai.

    ✓ Sahi reasoning. Header declarations deta hai; naam ko language keyword nahi banata.

  3. Pehli call ke baad hi keyword banta hai.

    Function call se identifier ki lexical category nahi badalti.

C17

Earlier edition ka quick reference

Existing section links aur saved passages ke liye retained. Exact corrections source review mein recorded hain.

C mein keywords ka set har standard ke saath evolve hua hai. Neeche di gayi table major C standards ke keywords ko unke meanings aur roles ke saath summarize karti hai.

Table 1: C Language Keywords aur Unke Meanings

Keyword Meaning / Role Standard(s)
autoAutomatic storage; C23 mein kuch declaration forms mein type inference bhiC89+; inference C23
breakNearest loop ya switch se exitC89+
caseswitch ke andar labeled branchC89+
charCharacter/small-integer type; sizeof(char) 1 haiC89+
constIs qualified type se read-only access; general compile-time constant ki guarantee nahiC89+
continueNearest loop continue hota hai (for ka update phir bhi run hota hai)C89+
defaultswitch ki default labeled branchC89+
doAisa loop jisme condition se pehle body run hoti haiC89+
doubleFloating-point type; long double ek aur floating type haiC89+
elseif ki alternative branchC89+
enumEnumerated type aur enumeration constantsC89+
externLinkage wala object/function declare karta hai; initialized object declaration definition bhi ho sakti haiC89+
floatFloating-point typeC89+
forInitialization, condition aur update clauses wala loopC89+
gotoSame function ke label par jumpC89+
ifScalar expression ke basis par conditional executionC89+
intInteger type; required minimum ke baad exact range implementation par dependC89+
longlong int, long long int aur long double mein type specifierC89+; long long C99
registerAutomatic storage aur optimization hint jise compiler ignore kar sakta haiC89+
returnFunction se return, optionally value ke saathC89+
shortShort integer types ka specifierC89+
signedSigned integer types ka specifierC89+
sizeofType ya expression ka size C bytes mein; result type size_tC89+
staticObjects ki static storage duration, file scope par internal linkage; array parameters mein bhi useC89+; array parameters C99
structOrdered members wala structure typeC89+
switchInteger controlling expression ke basis par selectionC89+
typedefType ka alias; naya distinct type nahiC89+
unionAisa type jiske members storage share karte hainC89+
unsignedUnsigned integer types ka specifierC89+
voidKoi value nahi; void * generic object-pointer type haiC89+
volatileAccesses ki special observable semantics; thread synchronization nahiC89+
whileHar iteration se pehle condition check karne wala loopC89+
inlineSpecial definition/linkage rules wala function specifier; call expansion guaranteed nahiC99+
restrictOptimization ke liye pointer-access/aliasing contractC99+
_BoolBoolean type; C23 mein bool ki purani alternative spellingC99+; alternative in C23
_ComplexComplex floating types; later standards mein support conditionalC99+
_ImaginaryOptional imaginary types ke liye reserved keyword; support guaranteed nahiC99+
_AlignasObject alignment specifier; alignas ki purani spellingC11+; alternative in C23
_AlignofType ki alignment query; alignof ki purani spellingC11+; alternative in C23
_AtomicAtomic type specifier/qualifier; poora algorithm automatically atomic nahi hotaC11+; conditional support
_GenericTranslation time par type ke basis par expression selectC11+
_NoreturnFunction caller ko return nahi karta; C23 mein [[noreturn]] preferredC11+; deprecated in C23
_Static_assertCompile-time assertion; static_assert ki purani spellingC11+; alternative in C23
_Thread_localThread storage duration; thread_local ki purani spellingC11+; alternative in C23
alignasAlignment specifier; ab header macro ke bina keywordC23+
alignofAlignment-query operator; ab keywordC23+
boolBoolean type; ab keywordC23+
constexprConstant-expression initialization wala constant object defineC23+
falseBoolean false predefined constantC23+
nullptrNull-pointer predefined constant; <stddef.h> iske type ko nullptr_t naam deta haiC23+
static_assertCompile-time assertion; ab keywordC23+
thread_localThread storage duration; ab keywordC23+
trueBoolean true predefined constantC23+
typeofType name ya expression se derived typeC23+
typeof_unqualtypeof jaisa, lekin top-level qualifiers aur atomic qualification hatata haiC23+
_BitIntBit-precise integer type specifier, _BitInt(N) ki form meinC23+
_Decimal32Decimal floating type, sirf decimal floating support wali implementations parC23+; conditional support
_Decimal64Decimal floating type, sirf decimal floating support wali implementations parC23+; conditional support
_Decimal128Decimal floating type, sirf decimal floating support wali implementations parC23+; conditional support

Version counts: C89/C90 mein 32, C99 mein 37 aur C11/C17 mein 44 keywords hain. C23 mein 54 primary keyword spellings aur paanch purani alternative spellings (_Alignas, _Alignof, _Bool, _Static_assert, _Thread_local) hain: is table mein total 59 recognized spellings hain. Yeh paanch alternatives C23 mein obsolescent hain. Reserved keyword hone se optional feature ka support guaranteed nahi hota. Header names, NULL, size_t, nullptr_t aur attribute names additional language keywords nahi hain.

Agla idea padhne ke liye tayyar?

Mark this chapter as read whenever you feel ready.

CHAPTER 20 / 73

Is chapter mein

C keyword index: C17 aur C23

Search all 73 chapters in both languages.EN + HG

Try “pointer”, “why int”, or “undefined behavior”.

Concepts connect. Follow your curiosity.↑ ↓ to explore · Enter to open
MAKE YOURSELF COMFORTABLE

Your reading space

Appearance

A clear canvas with balanced contrast.

Text size

100%
AA

Reading tools

Your data stays in this browser

Export a backup before changing browsers or replacing an older version of the reader.

YOUR PERSONAL MARGINS

My notebook

Saved on this device
A LITTLE CLARITY

The glossary

A starting meaning, then a chapter to go deeper.

A QUICK DEFINITION

A little clarity

Read the full explanation →

A thought worth keeping