Keywords :- की-वर्ड्स वे शब्द और वाक्यांश हैं जो प्रोग्रामिंग में उपयोग किए जाते हैं जिनका कंपाइलर के लिए विशेष अर्थ होता है।
C Identifiers :- C Identifier से तात्पर्य संस्थाओं को दिए गए नाम से है जैसे चर, कार्य, संरचना आदि। Identifiers अद्वितीय होने चाहिए। कार्यक्रम के निष्पादन के दौरान इसे पहचानने के लिए एक इकाई को एक अनूठा नाम देने के लिए उन्हें बनाया गया है। सी भाषा में 32 खोजशब्दों की सूची नीचे दी गई है ।
auto double int struck
break else long switch
case extern return union
const float short unsigned
continue for signed void
default goto size of volatile
do if static while
Rules for naming identifiers
- एक मान्य पहचानकर्ता में अक्षर (अपरकेस और लोअरकेस अक्षर दोनों), अंक और अंडरस्कोर हो सकते हैं।
- किसी पहचानकर्ता का पहला अक्षर या तो एक अक्षर या एक अंडरस्कोर होना चाहिए।
- आप पहचानकर्ता के रूप में int, while आदि जैसे कीवर्ड का उपयोग नहीं कर सकते हैं।
- पहचानकर्ता कितने समय तक हो सकता है इस पर कोई नियम नहीं है।
- हालाँकि, यदि पहचानकर्ता 31 वर्णों से अधिक लंबा है, तो आप कुछ संकलक में समस्याओं में भाग सकते हैं।
- यदि आप उपरोक्त नियम का पालन करते हैं, तो पहचानकर्ता के रूप में आप कोई भी नाम चुन सकते हैं, हालांकि पहचानकर्ताओं को अर्थपूर्ण नाम दें जो अर्थपूर्ण हों।