C Programming में Keywords – Understand Easyway in हिंदी 

C programming में keywords वो reserved words होते हैं, जो पहले से ही C language में defined होते हैं। इनका एक fixed meaning होता है और compiler इन्हे अपने specific purpose के लिए use करता है.

Simple words में समझो – keywords एक तरह के grammar ke rules होते है जो compiler को बताते हैं, कि code का structure और meaning क्या है।  हम इन्हे variable, function, या identifier के naam के रूप में use नहीं कर सकते। 

 Example: int, if, while, return  ये सभी keywords हैं।  Agar हम int ko या किसी भी keywords को variable name बनाते हैं, तो program में error आएगा। 

c programming में keywords

C Programming में Keywords कितने होते हैं ?

C language में total 32 keywords होते है (ANSI C standard ke according). ये  सारे keywords हर compiler में सेम होते है, और इनका use fix होता है। और ये lowercase में होते हैं। 

C Programming में keywords List of 32

नीचे table me 32 keywords दिए गए हैं। और  उनके short description भी हैं : 

KeywordUse / Meaning
autoautomatic storage class
breakloop ya switch से बहार निकलना
caseswitch statement के options
charcharacter data type
constconstant declare करना
continueloop के next iteration पे jump करना
defaultswitch ka fallback block
dodo-while loop बनाने के लिए
doubledouble precision floating-point type
elseif का alternate block
enumenumeration data define करना
externexternal variable/function declare करना
floatfloating-point type
forfor loop बनाने के लिए
gotounconditional jump (avoid करना चाहिए)
ifcondition चेक करने के लिए
intinteger type
longlong integer type
registerfast access storage के लिए
returnfunction से value return करना
shortshort integer type
signedsigned numbers के लिए
sizeofkisi type या variable का size batata hai
staticstatic storage class
structstructure define करना
switchmultiple conditions handle करना
typedeftype ke alias बनाने के लिए
unionmemory-sharing data structure
unsignedसिर्फ positive numbers
voidno value return करना
volatilecompiler optimization ko restrict करना
whilewhile loop बनाने के लिए

Keywords को Category में समझना 

अब इन 32 keywords को category wise समझते है, कि कौनसा keywords किस category में आता है।  और कहाँ उपयोग किया जाता है।  

1. Data Type के लिए 

ये keywords variable के type को define करने के लिए use होते हैं। 

Keywords Meaning
int Integer type data (whole number)
floatFloating Point Numbers (Decimal Values)
doubleDouble Precision Floating Point Number
charSingle character Store के लिए 
void कोई return type या Empty Data Type 

2. Storage Class Keyword

ये keywords variable की lifetime और visibility control करने के लिए use होते है। 

Keywords Meaning
auto Default Storage Class (local variable के लिए )
static Variable Value Program के pure Execution तक rahegi 
register Fast Access के लिए Variable को CPU register में Store करता है 
extern Variable को दूसरे File से Access करने के liye 

3. Control Flow Keyword

ये keywords program के flow को control करने के लिए उपयोग किये जाते हैं। 

Keywords Meaning
if, elseCondition Checking
switch, case, defaultMultiple Conditions handle करने के लिए
for, while, doLoops के लिए
break Loop या switch से बहार आने के लिए
continue Current iteration छोड़कर अगले iteration पर जाने के लिए 
goto Direct किसी Label पर Jump करने के लिए 

4. Type Qualifier Keyword

ये keywords data type के behavior को modify करते हैं । 

Keywords Meaning
const Value Change नहीं की जा सकती 
volatile Compiler को बताता है कि variable की value kabhi भी change की हो सकती है 
signed और  unsigned Integer values की Range define करती हैं 
charSingle character Store के लिए 
void कोई return type या Empty Data Type 

5. Derived Data Keywords

ये keywords complex data define करने के लिए use होते हैं। 

Keywords Meaning
struct Structure (multiple variables को group करने के लिए)
union Memory Sharing Data Structure 
enum Named Constants 
typedef किसी Data Type को नया Name देने के लिए 

Keywords का Practical Use (Code Examples)

Example 1 – if, else, int, return

#include <stdio.h>
int main() {
    int number = 10;   // int = keyword
    if (number > 5) {  // if = keyword
        printf("Number is greater than 5\n");
    } else {           // else = keyword
        printf("Number is smaller or equal to 5\n");
    }
    return 0;          // return = keyword
}

Output:

Number is greater than 5

Example 2 – for, break, continue

#include <stdio.h>
int main() {
    for (int i = 1; i <= 5; i++) {   // for = keyword
        if (i == 3) continue;        // continue = keyword
        if (i == 5) break;           // break = keyword
        printf("%d\n", i);
    }
    return 0;
}

Output:

1
2
4

Example 3 – struct, typedef, union

#include <stdio.h>

// typedef ka use alias banane ke liye
typedef struct {
    char name[20];
    int age;
} Student;

union Data {
    int i;
    float f;
};

int main() {
    Student s1 = {"Anwar", 21}; // struct & typedef
    union Data d;
    d.i = 10; // union
    printf("Name: %s, Age: %d\n", s1.name, s1.age);
    printf("Union value: %d\n", d.i);
    return 0;
}

Output:

Name: Anwar, Age: 21
Union value: 10

Keywords और Identifier में Difference  

c programming में keywords और indentifier दोनों अलग अलग चीज़ है।

  • Keywords: Predefined word जो Compiler को पहले से पता होता है, कि इसका क्या मतलब होता है।
  • Identifiers: User-defined names होते हैं जैसे – variable name, function name.

Example:

int age;   // int = keyword, age = identifier

Keywords का सही उपयोग 

  1. Keywords हमेशा lowercase में लिखे जाते है। 
  2. Keywords को variable नाम, function नाम या identifier के रूप में use नहीं किया जा सकता। 
  3. Keywords की spelling हमेशा सही होनी चाहिए। 

Common Mistakes जो Beginners करते है

  1. Keyword ko variable name bana lena
    int if = 10; → Error
  2. Capitalization ka confusion
    int (keyword)
    Int (ye keyword nahi, identifier ban sakta hai kyunki C case-sensitive hai)
  3. Redefining keywords
    #define return 5 → Compiler confuse ho jaata hai aur program crash karega.

Keywords in C Programming के Importance 

  • Keywords programming language का foundation होते है।
  • ये compiler को exact meaning बताते हैं।
  • इनकी वजह से C एक structured programming language बन पाती है।
  • Keywords के बिना C code लिखना और समझना impossible है।

Real-life Analogy – Keywords को समझने का आसान तरीका 

सोचो C language एक English sentence है। जैसे English में grammar के words (is, are, was, the, if) का meaning fixed होता है, और उन्हें हम अपने हिसाब से change नहीं कर सकते, वैसे ही C programming में keywords का एक fixed meaning है।

Conclusion (निष्कर्ष)

C programming में keywords एक core concept है। ये वो reserved words हैं जिनका menaning already fix है, और जो compiler के syntax का part हैं। C में total 32 keywords होते है, जो data type define करने, loops चलाने, conditions check करने, memory control और functions बनाने तक हर जगह काम आते हैं।

FAQs – C Programming Men Keywords

Q1. C programming में total कितने keywords होते हैं ?

C programming में total 32 keywords होते हैं।

Q2. क्या हम keywords को variable नाम के रूप में use कर सकते हैं ?

नहीं, keywords reserved होते हैं। अगर use करोगे तो error आएगा।

Q3. क्या  keywords uppercase में लिखे जा सकते हैं ?

नहीं, C language case-sensitive है। Keywords hamesha lowercase में लिखे जाते हैं।

Q4. C++ में keywords और C में keywords same होते है क्या ?

नहीं, C++ में extra features होते हैं, इसलिये 60+ keywords होते हैं।

Q5. Kya main() एक keyword है ?

नहीं. main एक function identifier है, keyword नहीं।

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top