C language | Keywords & Identifiers in C

What is  Keywords in C  in Hindi ?


  • Keywords प्रोग्रामिंग लैंग्वेज मे उपयोग मे होने वाले predefined & reserved words होते हैं।
  • Keyword का उपयोग अन्य काम ( जैसे variable name, constant name आदि ) के लिए नहीं कर सकते।
  • Compiler के लिए प्रत्येक keywords का एक special meaning होता है |
  • C लैंग्वेज में 32 keyword होते है।
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 switch typedef union unsigned void volatile while

What is Identifiers in C in Hindi ?


  • आसान शब्दो में, Identifiers का अर्थ किसी चीज को identify करने से है। हमारे आस पास बहुत सी चीजे होती है जिनको की हम उनके नाम से identify (call) करते है। जैसे किसी व्यक्ति को हम उसके नाम से कॉल करते है।
  • प्रोग्रामिंग लैंग्वेज मे Identifiers प्रोग्राम मे element ( जैसे variables, functions, arrays, structures, unions, आदि ) के नाम को represent करते है।

Identifiers को लिख़ने के कुछ rules होते है। 

  • एक Identifiers के नाम में केवल alphabets ( uppercase और lowercase) , digits (0-9)और underscores ( _ ) हो सकते हैं।
  • Identifiersकी शुरुआत किसी भी alphabet(a-z, A-Z) या underscore( _ ) से हो सकती है लेकिन  identifier  के नाम को किसी digit से शुरू नहीं कर सकते।
  • Identifier  के नाम मे space को allow नहीं किया जा सकता।
  • Identifier का नाम एक keyword नहीं होना चाहिए। उदाहरण के लिए int , float , char ये keyword है इनका उपयोग Identifier नाम के लिए नहीं कर सकते।
  • C लैंग्वेज एक ये case-sensitive Language है | अतः Identifier नाम जैसे school और SCHOOL दोनों अलग – अलग है।

उदारहण : 

int age;
char City  ;
double BankBalance;

जहाँ age City BankBalance , identifierहै। 

Differences between Keyword and Identifier –  Keyword और Identifier में अंतर 


Keyword Identifier
कीवर्ड pre-defined word होते है | जबकि आइडेंटिफायर user-defined word होते है |
कीवर्ड  lowercase letter मे लिखे गए है जबकि आइडेंटिफायर lowercase and uppercase letters मे लिखे जाते है
C compiler के लिए ये पहले से डिफाइन (pre-defined) रहते है। C compiler के लिए ये पहले से डिफाइन नहीं होते है।
कीवर्ड alphabetical characters (a-z) का combination होता है जबकि आइडेंटिफायर alphanumeric characters (a-z, 0-9 A- Z) और  underscore का combination होता है

 


RECOMMENDED POST :