इस आर्टिकल में हम what are Identifiers in C in Hindi? | Identifiers क्या हैं? और Types of Identifiers in C in Hindi | Identifiers के प्रकार के बारे में जानेंगे. दोस्तों hindi me IT me आपका बहुत बहुत अभिनान्दन हैं.
what are Identifiers in C in Hindi? | Identifiers क्या हैं?
identifiers को एक example से समझते हैं. जैसे हमारे दैनिक जीवन किसी भी चीज की पहचान करने के लिए उस चीज का नाम होता हैं. उसी प्रकार programming में भी variable, function, arrays, structures, labels आदि के नाम होते हैं उन्हें identifiers कहते हैं.
C programming में identifiers program में name को represent करते हैं. ये नाम कोई भी variable, functions, arrays, structures, labels आदि हो सकते हैं. एक identifier बनाने के लिए उसके name uppercase letters, lowercase letters, underscore और digits से मिलाकर बना सकते हैं.
लेकिन starting में alphabet या underscore होना चहिये किसी digits को नहीं ले सकते हैं.
इस प्रकार हम कह सकते हैं की एक identifiers collection of alphanumeric characters होता हैं. एक identifiers name alphabetical character या underscore से start होता हैं.
identifiers का use किसी भी variables, functions, arrays, unions, labels आदि को represent करते हैं program के अंदर. identifiers को 52 alphabetical characters जो की uppercase और lowercase दोनों हो सकते हैं. इसके अलाबा underscore और 10 number (0-9) हो सकते हैं.
Rules For Naming Identifiers in Hindi |Identifiers के नामकरण के नियम
- C programming में किसी भी identifier का पहला character कोई भी alphabet या underscore होना चहिये.
- पहला character के बाद कोई भी alphabet, underscore या digit हो सकता हैं.
- C programming में किसी भी identifier का पहला character digit नहीं हो सकता हैं.
- C programming में identifier का case-sensitive होते हैं. यानी की uppercase और lowercase letters दोनों अलग-अलग होते हैं.
- identifier के बीच में Commas या blank spaces नहीं दिया जा सकता हैं.
- C programming language में किसी भी Keywords को identifier के रूप में represented नहीं किया जा सकता हैं.
- C programming में identifiers में अधिकतम 31 characters हो सकते हैं.
- identifiers एक scope में unique होता हैं.
Examples of valid identifiers
total, sum, average, _m _, sum_1, _size, total_sum, num1,
Example of invalid identifiers
2sum (पहला character digit हैं), int (reserved keyword हैं), char (reserved keyword हैं), m+n (special character, '+' हैं), \@hello
Types of Identifiers in C in Hindi | Identifiers के प्रकार
C programming में identifier दो प्रकार के होते हैं.
- Internal identifier
- External identifier
Internal Identifier
C programming में Internal Identifier वे होते हैं. में external linkage में Identifier का use नहीं जा सकता हैं. इसे Internal Identifier कहते हैं. internal identifiers local variables हो सकते हैं.
External Identifier
C programming में External Identifier वे होते हैं. में external linkage में Identifier का use जा सकता हैं. इसे External Identifier कहते हैं. External identifiers global variables , function names हो सकते हैं.
Differences between Keywords and Identifiers in Hindi | Keywords और Identifiers के बीच अंतर
S. No | Keywords | Identifiers |
1. | Keywords C programming में पहले से ही define (pre-defined) हैं. | identifiers C programming में user-defined होते हैं. |
2. | Keywords को C programming में केवल lowercase में ही लिखा जाता हैं. | identifiers को lowercase और uppercase दोनों letters में लिखा जा सकता हैं. |
3. | Keywords का मतलब C का compiler पहले से ही समझता हैं. | identifiers का मतलब C का compiler पहले से नहीं ही समझता हैं. |
4. | Keywords collection of alphabetical characters होते हैं. | identifiers collection of alphanumeric characters होते हैं. |
5. |
Keywords underscore character नहीं होता हैं. | identifiers में underscore character हो सकता हैं. |
Example :-
#include <stdio.h> int main() { int b=15; int B=25; printf("Value of b is : %d",b); printf("\nValue of B is :%d",B); return 0; }
Output:-
Value of b is : 15 Value of B is :25
ऊपर जो output आया हैं उस से यह पता चलता हैं. दोनों variables “b” और “B” की value अलग-अलग हैं. इस example से ये साफ पता चल रहा हैं identifiers case sensitive होते हैं.
By reference by :- https://www.geeksforgeeks.org/difference-between-identifiers-and-variables-in-c/
आशा करता हूँ what are Identifiers in C in Hindi? | Identifiers क्या हैं? और Types of Identifiers in C in Hindi | Identifiers के प्रकार आपको पसंद आई होगी. अगर आपको इससे related कोई question पूछना हैं तो आप comment करके पूछ सकते है. अगर हमारे व्दारा की जानकर अच्छी लगी हो तो आपने दोस्तों के साथ जरुर शेयर करें. धन्यबाद
FAQ प्रश्न :-
प्रश्न – what are Identifiers in C in Hindi? | Identifiers क्या हैं?

उत्तर – identifiers को एक example से समझते हैं. जैसे हमारे दैनिक जीवन किसी भी चीज की पहचान करने के लिए उस चीज का नाम होता हैं. उसी प्रकार programming में भी variable, function, arrays, structures, labels आदि के नाम होते हैं उन्हें identifiers कहते हैं.
प्रश्न – Types of Identifiers in C in Hindi | Identifiers के प्रकार
उत्तर – C programming में identifier दो प्रकार के होते हैं.
Internal identifier
External identifier