PGDCA, BCA, B-Tech, MCA, M-Tech, B.Sc computer science राजस्थान सूचना सहायक व कंप्यूटर शिक्षक विशेष नोट्स: इस अध्याय में हम Tokens in C: Keywords (32 Keywords), Identifiers, Constants (C टोकन्स: 32 कीवर्ड्स, आइडेंटिफायर्स और नामकरण के नियम) की संपूर्ण थ्योरी, मुख्य तकनीकी बिंदु, तुलनात्मक तालिका और विगत परीक्षाओं के पैटर्न पर आधारित 20 अति-महत्वपूर्ण बहुविकल्पीय प्रश्न (MCQs) विस्तृत हिंदी व अंग्रेजी व्याख्या सहित पढ़ेंगे।
Overview: A token is the smallest indivisible lexical unit recognized by the C compiler during scanning, divided into six classes: Keywords, Identifiers, Constants, String Literals, Operators, and Punctuators. ANSI C89 reserves exactly 32 lowercase keywords with fixed semantics, while Identifiers must follow strict naming rules and the lexer applies Maximal Munch when grouping symbols.
अध्याय सार: टोकन किसी C प्रोग्राम की सबसे छोटी सार्थक लेक्सिकल इकाई होती है, जिसे छह वर्गों—Keywords, Identifiers, Constants, String Literals, Operators और Punctuators—में बाँटा जाता है। ANSI C89 में ठीक 32 लोअरकेस कीवर्ड्स आरक्षित हैं, जबकि आइडेंटिफायर्स के नामकरण और टोकन विभाजन में मैक्सिमल मंच (Maximal Munch) नियम लागू होता है।
Tokens in C: Keywords (32 Keywords), Identifiers, Constants: Detailed Notes & Architecture (C टोकन्स: 32 कीवर्ड्स, आइडेंटिफायर्स और नामकरण के नियम)
1. Six Classes of C Tokens & The Maximal Munch Rule (C टोकन्स के छह वर्ग और मैक्सिमल मंच नियम)
[EN] During lexical analysis, the C compiler converts source characters into tokens belonging to six categories: Keywords (int, return), Identifiers (sum, main), Constants (42, 'A', 3.14), String Literals ("Hi"), Operators (+, ++, ==, sizeof), and Punctuators/Separators (;, {, }, (, ), ,). Whitespace and comments act only as token delimiters and are discarded. The lexer applies the Maximal Munch (greedy) principle, reading the longest valid token left-to-right: thus a+++b always tokenizes as (a++) + b rather than a + (++b), while a+++++b becomes (a++) ++ + b (invalid lvalue error).
[HI] लेक्सिकल एनालिसिस के दौरान कंपाइलर पूरे कोड को छह प्रकार के टोकन्स में बाँटता है: Keywords, Identifiers, Constants, String Literals, Operators और Punctuators (जैसे ;, {, }, ,)। रिक्त स्थान व कमेंट्स टोकन नहीं होते बल्कि केवल टोकन को अलग करते हैं। लेक्सर बाएँ से दाएँ सबसे लंबा मान्य टोकन बनाने का Maximal Munch नियम अपनाता है, इसलिए a+++b सदैव (a++) + b के रूप में पढ़ा जाता है।
2. The 32 ANSI C Keywords & C99/C11/C23 Extensions (32 ANSI C कीवर्ड्स और नए मानकों के विस्तार)
[EN] ANSI C89/C90 defines exactly 32 reserved lowercase keywords: 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, and while. Because C is case-sensitive, INT or Return are NOT keywords (though poor naming). Later standards added 5 keywords in C99 (inline, restrict, _Bool, _Complex, _Imaginary), 7 in C11 (_Alignas, _Alignof, _Atomic, _Generic, _Noreturn, _Static_assert, _Thread_local), and several in C23 (bool, nullptr, constexpr, typeof).
[HI] ANSI C89/C90 में ठीक 32 आरक्षित कीवर्ड्स हैं और सभी केवल छोटे अक्षरों (lowercase) में होते हैं; केस-सेंसिटिव होने के कारण INT या While कीवर्ड नहीं माने जाते। ध्यान रहे कि sizeof एकमात्र कीवर्ड है जो ऑपरेटर की तरह भी कार्य करता है। बाद में C99 ने 5 (inline, restrict, _Bool आदि), C11 ने 7 (_Atomic, _Generic आदि) तथा C23 ने bool, nullptr जैसे नए कीवर्ड्स जोड़े।
3. Identifier Naming Rules & Reserved Library Prefixes (आइडेंटिफायर्स के नियम और आरक्षित प्रीफिक्स)
[EN] Identifiers name variables, functions, tags, typedefs, and labels. Every valid identifier must start with an ASCII letter (A-Z, a-z) or underscore (_), followed by letters, digits (0-9), or underscores; leading digits (2num), hyphens (my-var), spaces, and special symbols (@, #) are strictly illegal, and identifiers cannot duplicate any keyword. Moreover, ISO C reserves identifiers beginning with two underscores (__myvar) or an underscore plus an uppercase letter (_Temp) for compiler/standard-library internals. ANSI C89 requires compilers to distinguish at least 31 significant characters for internal names (63 in C99).
[HI] वैध आइडेंटिफायर की शुरुआत केवल अक्षर (A-Z, a-z) या अंडरस्कोर (_) से होनी चाहिए, जिसके बाद अक्षर, अंक (0-9) या अंडरस्कोर आ सकते हैं; अंक से शुरुआत (2sum), हाइफन (-) या स्पेस अमान्य हैं। डबल अंडरस्कोर (__) या अंडरस्कोर + बड़े अक्षर (_X) से शुरू होने वाले नाम कंपाइलर व मानक लाइब्रेरी के लिए आरक्षित रहते हैं। C89 में आंतरिक नामों के कम से कम 31 तथा C99 में 63 प्रारंभिक अक्षर सार्थक (Significant) माने जाते हैं।
4. Constants, String Literals, Operators & Punctuators (कांस्टेंट्स, स्ट्रिंग लिटरल्स, ऑपरेटर्स और पंक्चुएटर्स)
[EN] Constants represent fixed literal values (100, 0xFF, 'Z', 2.5e3), whereas String Literals ("India") are double-quoted immutable arrays automatically padded with a terminating null byte '\0'. Operators trigger computations or type-size queries (including the compile-time keyword operator sizeof), while Punctuators such as ;, ,, [], {}, (), and : govern statement endings, parameter separation, subscripts, and blocks. Standard library names like printf, scanf, and entry point main are regular identifiers—NOT C keywords.
[HI] कांस्टेंट्स स्थिर मान दर्शाते हैं जबकि डबल कोट्स में लिखे String Literals (जैसे "C") के अंत में कंपाइलर स्वतः नल बाइट '\0' जोड़ता है। ऑपरेटर्स गणना करते हैं और पंक्चुएटर्स (; , { } [ ]) कोड की संरचना तय करते हैं। परीक्षा की दृष्टि से याद रखें कि main, printf और scanf कीवर्ड्स नहीं हैं, बल्कि मानक आइडेंटिफायर्स हैं।
Syntax, Formula & Technical Example (Tokens in C: Keywords (32 Keywords), Identifiers, Constants)
#include <stdio.h>
int main(void) {
int val_1 = 10, b = 20; /* Keywords: int, void; Identifiers: val_1, b */
int res = val_1+++b; /* Maximal munch: (val_1++) + b -> 10 + 20 */
printf("res=%d val_1=%d sizeof(int)=%zu\n", res, val_1, sizeof(int));
return 0; /* Punctuators: ; , ( ) { } */
}
Tokens in C: Keywords (32 Keywords), Identifiers, Constants Quick Reference & Comparison Table
| Token Category | Formal Lexical Rule / Count | Examples & Exam Trap |
|---|---|---|
| Keywords | 32 fixed lowercase reserved words (ANSI C89) | int, static, sizeof, volatile; INT is NOT a keyword |
| Identifiers | Starts with [A-Za-z_], followed by [A-Za-z0-9_] | val_1 valid; 2sum & my-var invalid; __foo reserved |
| Operators | Computation symbols (+, ++, ==) & sizeof | Greedy Maximal Munch parses a+++b as (a++) + b |
| Constants & Strings | Fixed numeric/char values & '\0'-ended text | 42, 'A', 3.14; "C" takes 2 bytes ('C' + '\0') |
Tokens in C: Keywords (32 Keywords), Identifiers, Constants Top 20 Bilingual MCQs with Answers
Q1. Exactly how many reserved keywords exist in the classic ANSI C (C89 / C90) standard?
(क्लासिक ANSI C (C89 / C90) मानक में कुल कितने आरक्षित कीवर्ड्स (Keywords) होते हैं?)
(A) 48
(B) 32
(C) 28
(D) 64
Correct Answer: (B)
[EN] ANSI C89 standardized exactly 32 lowercase keywords (later expanded to 37 in C99 and 44 in C11).
[HI] ANSI C89 मानक में ठीक 32 छोटे अक्षरों वाले आरक्षित कीवर्ड्स निर्धारित किए गए थे।
Q2. Which of the following is a VALID user-defined identifier in standard C?
(निम्नलिखित में से कौन सा मानक C में एक वैध (Valid) यूज़र-डिफाइंड आइडेंटिफायर है?)
(A) 2nd_value
(B) total_amount_2
(C) double
(D) student-mark
Correct Answer: (B)
[EN] Identifiers may contain letters, digits, and underscores if they do not begin with a digit or match a keyword; hyphens are subtraction operators.
[HI] आइडेंटिफायर अक्षर या अंडरस्कोर से शुरू होकर अक्षर, अंक व अंडरस्कोर रख सकता है; अंक से शुरुआत, हाइफन या कीवर्ड अमान्य हैं।
Q3. Which of the following tokens is actually a C KEYWORD rather than a standard library identifier?
(निम्नलिखित में से कौन सा शब्द वास्तव में एक C कीवर्ड है, न कि मानक लाइब्रेरी आइडेंटिफायर?)
(A) main
(B) NULL
(C) sizeof
(D) printf
Correct Answer: (C)
[EN] sizeof is one of the 32 ANSI C keywords (and also a compile-time unary operator); printf, main, and NULL are identifiers/macros.
[HI] sizeof 32 ANSI कीवर्ड्स में से एक है, जबकि printf, main और NULL कीवर्ड नहीं बल्कि आइडेंटिफायर/मैक्रो हैं।
Q4. How many individual C tokens are present in the single statement: printf("Hi");
(कथन printf("Hi"); में कुल कितने अलग-अलग C टोकन्स मौजूद हैं?)
(A) 6 tokens: p, r, i, n, t, f
(B) 4 tokens: printf, (, "Hi", )
(C) 5 tokens: printf, (, "Hi", ), ;
(D) 3 tokens: printf, "Hi", ;
Correct Answer: (C)
[EN] Each identifier (printf), punctuator ((, ), ;), and string literal ("Hi") forms one indivisible lexical token, totaling 5.
[HI] यहाँ printf (आइडेंटिफायर), ( (पंक्चुएटर), "Hi" (स्ट्रिंग लिटरल), ) और ; मिलाकर कुल 5 टोकन हैं।
Q5. According to C's Maximal Munch lexical rule, how is the expression 'a+++b' tokenized?
(C के मैक्सिमल मंच (Maximal Munch) लेक्सिकल नियम के अनुसार 'a+++b' को किस प्रकार टोकन में बाँटा जाता है?)
(A) (a++) + b
(B) a + + + b (syntax error)
(C) (a + +) + b
(D) a + (++b)
Correct Answer: (A)
[EN] Scanning left-to-right, after 'a' the lexer greedily consumes '++' as one operator token, leaving '+' as binary addition before 'b'.
[HI] बाएँ से दाएँ स्कैन करते समय लेक्सर अधिकतम लंबाई वाला टोकन '++' पहले चुनता है, जिससे यह (a++) + b बनता है।
Q6. Which statement correctly explains why 'Int count = 5;' does NOT declare an integer variable in C?
(C में 'Int count = 5;' लिखने पर इंटीजर वेरिएबल घोषित क्यों नहीं होता?)
(A) C keywords are strictly lowercase and case-sensitive, so 'Int' is treated as an unknown identifier, not 'int'
(B) 5 is an invalid keyword
(C) Identifiers cannot contain lowercase letters
(D) C forbids initializing variables at declaration
Correct Answer: (A)
[EN] Only lowercase 'int' is a keyword; 'Int' is parsed as an undeclared type identifier.
[HI] C में सभी कीवर्ड केवल lowercase में होते हैं; केस-सेंसिटिविटी के कारण 'Int' को एक अज्ञात आइडेंटिफायर माना जाता है।
Q7. Which prefix pattern is officially RESERVED by the ISO C standard for the compiler and standard library implementation?
(ISO C मानक द्वारा कंपाइलर और मानक लाइब्रेरी के आंतरिक उपयोग के लिए कौन सा नामकरण पैटर्न आरक्षित रखा गया है?)
(A) Names ending in _val
(B) Names starting with double underscore (__) or underscore followed by an uppercase letter (_X)
(C) Names starting with a lowercase letter followed by digits (a1)
(D) Names containing uppercase letters in the middle (myVar)
Correct Answer: (B)
[EN] Defining identifiers like __init or _Max in user code risks colliding with internal compiler macros and standard library symbols.
[HI] डबल अंडरस्कोर (__) या अंडरस्कोर के तुरंत बाद कैपिटल अक्षर (_X) वाले नाम सिस्टम व लाइब्रेरी के लिए आरक्षित रहते हैं।
Q8. How many initial characters of an internal identifier is an ANSI C89 compiler minimally guaranteed to treat as significant?
(ANSI C89 कंपाइलर को कम से कम किसी आंतरिक आइडेंटिफायर के कितने प्रारंभिक अक्षरों को सार्थक (Significant) मानना अनिवार्य है?)
(A) 128 characters
(B) 31 characters (increased to 63 in C99)
(C) 16 characters
(D) 8 characters
Correct Answer: (B)
[EN] ANSI C89 guarantees at least 31 significant characters for internal names (6 for external linkage names; C99 raised them to 63 and 31).
[HI] C89 में आंतरिक आइडेंटिफायर के कम से कम 31 अक्षर सार्थक होते हैं (C99 में यह सीमा 63 कर दी गई)।
Q9. What are the six official categories of C tokens?
(C टोकन्स की छह आधिकारिक श्रेणियाँ कौन सी हैं?)
(A) Keywords, Identifiers, Constants, String Literals, Operators, and Punctuators
(B) Headers, Macros, Comments, Functions, Loops, Branches
(C) Variables, Arrays, Pointers, Structs, Unions, Enums
(D) Bytes, Words, Registers, Flags, Stacks, Heaps
Correct Answer: (A)
[EN] Every valid C source file reduces cleanly during lexical scanning into those six lexical token classes.
[HI] लेक्सिकल स्कैनिंग में पूरा C कोड Keywords, Identifiers, Constants, String Literals, Operators और Punctuators में टूटता है।
Q10. Which five keywords were newly added by the ISO C99 standard?
(ISO C99 मानक द्वारा निम्नलिखित में से कौन से पाँच नए कीवर्ड्स जोड़े गए थे?)
(A) int, char, float, double, void
(B) inline, restrict, _Bool, _Complex, _Imaginary
(C) bool, nullptr, constexpr, typeof, alignas
(D) class, public, private, virtual, template
Correct Answer: (B)
[EN] C99 carefully chose underscore-capital keywords (_Bool, _Complex, _Imaginary) plus inline and restrict to avoid breaking legacy C89 code.
[HI] पुराने C89 कोड से टकराव से बचने हेतु C99 ने inline, restrict, _Bool, _Complex और _Imaginary जोड़े।
Q11. How many tokens are in the variable declaration: int x = 10 + 20;
(वेरिएबल डिक्लेरेशन 'int x = 10 + 20;' में कुल कितने टोकन हैं?)
(A) 6 tokens
(B) 5 tokens
(C) 8 tokens
(D) 7 tokens
Correct Answer: (D)
[EN] The 7 tokens are: 'int', 'x', '=', '10', '+', '20', and ';'.
[HI] इस पंक्ति में 'int', 'x', '=', '10', '+', '20' और ';' मिलाकर कुल 7 टोकन हैं।
Q12. Why is 'a+++++b' rejected as a compile-time error by the C compiler even though 'a++ + ++b' with spaces compiles?
(यदि 'a++ + ++b' स्पेस के साथ चल जाता है, तो बिना स्पेस के 'a+++++b' में कंपाइल त्रुटि क्यों आती है?)
(A) Spaces are always mandatory around every operator
(B) C prohibits more than two plus signs in a single file
(C) Maximal Munch groups it as ((a++)++) + b, and postfix (a++) yields a non-modifiable rvalue
(D) The preprocessor treats ++++ as a comment
Correct Answer: (C)
[EN] Adding whitespace separates '++' tokens cleanly, whereas without spaces greedy tokenization produces an illegal double postfix increment.
[HI] बिना स्पेस के मैक्सिमल मंच इसे ((a++)++) + b में तोड़ता है, जहाँ (a++) एक rvalue होने से उस पर पुनः ++ नहीं लग सकता।
Q13. Which of the following is NOT treated as a token by the C compiler?
(निम्नलिखित में से किसे C कंपाइलर द्वारा टोकन के रूप में नहीं गिना जाता है?)
(A) Floating-point constants like 0.5
(B) Comments (/* ... */) and whitespace delimiters
(C) Semicolon (;) statement terminators
(D) String literals inside double quotes
Correct Answer: (B)
[EN] Comments are erased during preprocessing and whitespace merely separates adjacent tokens.
[HI] कमेंट्स प्रीप्रोसेसिंग में ही हट जाते हैं और व्हाइटस्पेस केवल टोकन्स को पृथक रखने के काम आता है।
Q14. Why is 'float' invalid as a function name, whereas 'Float' compiles legally?
('float' फंक्शन का नाम नहीं बन सकता, जबकि 'Float' वैध रूप से कंपाइल क्यों हो जाता है?)
(A) Functions must always start with a capital letter
(B) 'float' is a lowercase reserved keyword, while 'Float' differs in case and is a valid user identifier
(C) 'Float' is a standard library macro in <stdio.h>
(D) Uppercase identifiers bypass C syntax checks entirely
Correct Answer: (B)
[EN] C's case sensitivity distinguishes 'Float' from the keyword 'float', though mixing case like that harms readability.
[HI] C केस-सेंसिटिव है; 'float' एक कीवर्ड है जबकि कैपिटल F वाला 'Float' एक सामान्य आइडेंटिफायर माना जाता है।
Q15. Which keyword serves as an operator evaluated at compile time (except for C99 VLAs) to return an object's byte size?
(कौन सा कीवर्ड एक ऐसे ऑपरेटर के रूप में कार्य करता है जो किसी डेटा टाइप या ऑब्जेक्ट का बाइट आकार बताता है?)
(A) extern
(B) typedef
(C) register
(D) sizeof
Correct Answer: (D)
[EN] sizeof returns a size_t byte count without evaluating non-VLA operands at runtime.
[HI] sizeof एक कीवर्ड व यूनरी ऑपरेटर दोनों है जो size_t प्रकार में बाइट आकार लौटाता है।
Q16. Which statement about Tokens in C is FALSE?
(C टोकन्स के बारे में निम्नलिखित में से कौन सा कथन असत्य (FALSE) है?)
(A) Operators and punctuators are distinct categories of C tokens
(B) Every ANSI C89 keyword consists solely of lowercase letters
(C) An identifier cannot start with a digit (0-9)
(D) Standard function names like printf, scanf, and main are reserved C keywords
Correct Answer: (D)
[EN] printf, scanf, and main are identifiers (library functions / special entry name), not among the 32 C keywords.
[HI] printf, scanf और main मानक आइडेंटिफायर्स हैं, ये C के 32 आरक्षित कीवर्ड्स की सूची में शामिल नहीं हैं।
Q17. Within Tokens in C: Keywords (32 Keywords), Identifiers, Constants, which token category directly maps to: "32 fixed lowercase reserved words (ANSI C89)"?
(Tokens in C: Keywords (32 Keywords), Identifiers, Constants में कौन सा Token Category सीधे "32 fixed lowercase reserved words (ANSI C89)" से संबंधित है?)
(A) Keywords
(B) Identifiers
(C) Constants & Strings
(D) Operators
Correct Answer: (A)
[EN] In Tokens in C: Keywords (32 Keywords), Identifiers, Constants, 'Keywords' handles '32 fixed lowercase reserved words (ANSI C89)' (int, static, sizeof, volatile; INT is NOT a keyword).
[HI] Tokens in C: Keywords (32 Keywords), Identifiers, Constants में 'Keywords' का कार्य/विवरण '32 fixed lowercase reserved words (ANSI C89)' (int, static, sizeof, volatile; INT is NOT a keyword) है।
Q18. Which option accurately describes 'Identifiers' in Tokens in C: Keywords (32 Keywords), Identifiers, Constants?
(Tokens in C: Keywords (32 Keywords), Identifiers, Constants के संदर्भ में 'Identifiers' की सही विशेषता कौन सी है?)
(A) 32 fixed lowercase reserved words (ANSI C89)
(B) Starts with [A-Za-z_], followed by [A-Za-z0-9_]
(C) Fixed numeric/char values & '\0'-ended text
(D) Computation symbols (+, ++, ==) & sizeof
Correct Answer: (B)
[EN] 'Identifiers' provides 'Starts with [A-Za-z_], followed by [A-Za-z0-9_]' — key point: val_1 valid; 2sum & my-var invalid; __foo reserved.
[HI] 'Identifiers' का मुख्य विवरण 'Starts with [A-Za-z_], followed by [A-Za-z0-9_]' है (val_1 valid; 2sum & my-var invalid; __foo reserved)।
Q19. In Tokens in C: Keywords (32 Keywords), Identifiers, Constants, identify the correct parameter for the specification: "Computation symbols (+, ++, ==) & sizeof".
(Tokens in C: Keywords (32 Keywords), Identifiers, Constants में "Computation symbols (+, ++, ==) & sizeof" विवरण किस विकल्प के लिए सही है?)
(A) Keywords
(B) Identifiers
(C) Operators
(D) Constants & Strings
Correct Answer: (C)
[EN] 'Operators' corresponds to 'Computation symbols (+, ++, ==) & sizeof' (Greedy Maximal Munch parses a+++b as (a++) + b).
[HI] 'Operators' का संबंध 'Computation symbols (+, ++, ==) & sizeof' (Greedy Maximal Munch parses a+++b as (a++) + b) से है।
Q20. Considering Tokens in C: Keywords (32 Keywords), Identifiers, Constants, what key behavior defines 'Constants & Strings'?
(Tokens in C: Keywords (32 Keywords), Identifiers, Constants में 'Constants & Strings' की मुख्य भूमिका या मान क्या है?)
(A) 32 fixed lowercase reserved words (ANSI C89)
(B) Fixed numeric/char values & '\0'-ended text
(C) Computation symbols (+, ++, ==) & sizeof
(D) Starts with [A-Za-z_], followed by [A-Za-z0-9_]
Correct Answer: (B)
[EN] 'Constants & Strings' represents 'Fixed numeric/char values & '\0'-ended text' (42, 'A', 3.14; "C" takes 2 bytes ('C' + '\0')).
[HI] 'Constants & Strings' का अर्थ/मान 'Fixed numeric/char values & '\0'-ended text' है (42, 'A', 3.14; "C" takes 2 bytes ('C' + '\0'))।
Tokens in C: Keywords (32 Keywords), Identifiers, Constants — Exam FAQs
Q1: Are main, printf, and scanf counted among the 32 C keywords?
क्या main, printf और scanf C के 32 कीवर्ड्स में गिने जाते हैं?
[EN] No! None of them is a keyword. printf and scanf are standard library function identifiers declared in <stdio.h>, and main is a special user-defined function identifier recognized by the linker/CRT as program entry.
[HI] नहीं! ये तीनों कीवर्ड नहीं हैं। printf व scanf <stdio.h> लाइब्रेरी के फंक्शन आइडेंटिफायर्स हैं, तथा main एक विशेष यूज़र-डिफाइंड फंक्शन नाम है जिसे लिंकर एंट्री पॉइंट मानता है।
Q2: Can a variable name in C start with an underscore (_)?
क्या C में किसी वेरिएबल का नाम अंडरस्कोर (_) से शुरू हो सकता है?
[EN] Yes lexically—e.g., _count inside a function is syntactically valid—but avoid starting identifiers with __ or _Uppercase (and avoid leading _ at file scope), as ISO C reserves them for compiler and standard library internals.
[HI] हाँ, व्याकरण के अनुसार _count वैध है, लेकिन __ (दो अंडरस्कोर) या _Capital से शुरू होने वाले नामों से बचना चाहिए क्योंकि ये कंपाइलर व लाइब्रेरी के लिए आरक्षित होते हैं।
Q3: Why is sizeof counted as both a keyword and an operator?
sizeof को कीवर्ड और ऑपरेटर दोनों क्यों माना जाता है?
[EN] sizeof is one of the 32 reserved C keywords lexically, yet grammatically it behaves as a compile-time unary operator taking a type in parentheses (sizeof(int)) or an expression (sizeof x) and yielding a size_t byte count.
[HI] शब्दकोश स्तर पर यह 32 आरक्षित कीवर्ड्स में शामिल है, जबकि सिंटैक्स व कार्यप्रणाली में यह एक यूनरी ऑपरेटर है जो किसी टाइप या वेरिएबल का बाइट आकार (size_t) लौटाता है।
Post a Comment
Post a Comment