How many character include in an identifier name in C?

1 Answer

Answer :

The C99 standard (ISO/IEC: 9899:1999) has the following to say on the matter:5.2.4.1 Translation limitsThe implementation shall be able to translate and execute at least one program that contains at least one instance of every one of the following limits:127 nesting levels of blocks63 nesting levels of conditional inclusion12 pointer, array, and function declarators (in any combinations) modifying an arithmetic, structure, union, or incomplete type in a declaration63 nesting levels of parenthesised declarators within a full declarator63 nesting levels of parenthesised expressions within a full expression63 significant initial characters in an internal identifier or a macro name (each universal character name or extended source character is considered a single character)31 significant initial characters in an external identifier (each universal character name specifying a short identifier of 0000FFFF or less is considered 6 characters, each universal character name specifying a short identifier of 00010000 or more is considered 10 characters, and each extended source character is considered the same number of characters as the corresponding universal character name, if any)4095 external identifiers in one translation unit511 identifiers with block scope declared in one block4095 macro identifiers simultaneously defined in one preprocessing translation unit127 parameters in one function definition127 arguments in one function call127 parameters in one macro definition127 arguments in one macro invocation4095 characters in a logical source line4095 characters in a character string literal or wide string literal (after concatenation)65535 bytes in an object (in a hosted environment only)15 nesting levels for #included files1023 case labels for a switch statement (excluding those for any nested switch statements)1023 members in a single structure or union1023 enumeration constants in a single enumeration63 levels of nested structure or union definitions in a single struct-declaration-listFootnote: Implementations should avoid imposing fixed translation limits whenever possible.There is no practical reason to impose these limits within the compiler let alone to make these limits available to the programmer, hence there is no standard header that defines them. Even if there were, the information is of no use to you let alone to the compiler, given that the compiler cannot arbitrarily change your identifier name lengths to suit. After all, those identifiers are supposed to be portable!If translation limits do exist for your specific compiler, then it should be documented. A C99 compliant compiler must meet (or exceed) the limits defined by the C99 standard but those limits are such that "ordinary", portable code should never exceed them. After all, an identifier is only useful if it is readable, but if you have several identifiers such that the first 63 characters are an exact match then your code is anything but readable.

Related questions

Description : ECE Board Exam March 1996 One character or a sequence of characters forming a part, or the whole of a message with a specific meaning A. Signs B. Call sign C. Code D. Identifier

Last Answer : C. Code

Description : Key field is a unique identifier for each record. It is defined in the form of (a) rows (b) columns -Technology

Last Answer : (b) Key is a data item that allows you to uniquely identify individual occurrences which is defined as the column or set of columns.

Description : How many digits are there in Mobile Money Identifier(MMID)? A. 7 digits B. 9 digits C. 10 digits D. 11 digits E. None of the Above

Last Answer : A. 7 digits Explanation: Mobile Money Identifier is a 7 digit number, issued by banks. MMID is one of the input which when clubbed with mobile number facilitates fund transfer. Combination of ... and helps in identifying the beneficiary details. Different MMID s can be linked to same Mobile Number.

Description : Each item of the Work Breakdown Structure is assigned a unique identifier. What is the name  of this identifier? 1. Product ID number  2. Code of accounts  3. Quality inspection identifier  4. Project activity code

Last Answer : 2. Code of accounts

Description : The attributes of a file are. a. Name b. Identifier c. Types d. Location e. Size f. Protection g. Time, date and user identification h. Allof these

Last Answer : h. Allof these

Description : MOVE AX BX in this LINES OF CODE what type of error is declared: a. Undeclared identifier MOVE b. undeclared identifier AX c. Accept as a command d. Not look in symbol table

Last Answer : a. Undeclared identifier MOVE

Description : subroutines are invoked by using their___ _ ina subroutine call statement and replacing formal parameters with__ __ parameters: a. Identifier and formal b. Identifier and actual c. Expression and arguments d. None of these

Last Answer : b. Identifier and actual

Description : In IPv6, the _______ field inthe baseheader and thesender IP address combineto indicate aunique path identifier for aspecific flow of data. A) flow label B) nextheader C) hoplimit D) destination IP address

Last Answer : flow label

Description : Header of a frame generally contains a. synchronization bytes b. addresses c. frame identifier d. all of the mentioned

Last Answer : d. all of the mentioned

Description : In process to process delivery, an application process is assigned a ………….., which is likely to be …………….each time that process is started A. process identifier number , different B. process identifier number, same C. source, mixed D. Source, similar

Last Answer : A. process identifier number , different

Description : An application process is assigned a process identifier number (process ID), which is likely to be _______ each time that process is started. A. Similar B. smaller C. different D. larger

Last Answer : C. different

Description : Header of a Layer two frame usually contain ______________ A. synchronization bytes B. addresses C. frame identifier D. all of the mentioned

Last Answer : D. all of the mentioned

Description : Which of the following must be contained in a URL? a) A protocol identifier b) The letters www. c) The unique registered domain name d) www.and the unique registered domain name e) None of these

Last Answer : d) www.and the unique registered domain name

Description : Processes on the remote systems are identified by ___________ a) host ID b) host name and identifier c) identifier d) process ID

Last Answer : host name and identifier

Description : Define what is an identifier?

Last Answer : Identifiers are nothing but names given to various entities uniquely identified in a program.

Description : Define what are the rules for the identifier?

Last Answer : The first character must be an alphabet or underscore (_) Digits may be included in the variable The maximum number of characters in a word are 32 (It may vary depending upon the platform) No other special characters are allowed.

Description : no ICAO identifier has been attributed to an aerodrome, what should be entered in Box 16 of the Flight Plan? a. ZZZZ b. NNNN c. A/N d. A/D XXX

Last Answer : a. ZZZZ

Description : If no ICAO identifier has been attributed to an aerodrome, what should be entered in Box 16 of the Flight Plan? a. ZZZZ b. NNNN c. A/N d. A/D XXX

Last Answer : a. ZZZZ

Description : Which of the following is not mandatory in variable declaration? A) a semicolon B) an identifier C) an assignment D) a data type

Last Answer : C) an assignment

Description : HTTP resources are located by a. unique resource locator b. unique resource identifier c. none of the mentioned d. uniform resource identifier

Last Answer : d. uniform resource identifier

Description : Describe the following terms: (i) Keyword (ii) Identifier (iii) Variable (iv) Constant

Last Answer : (i) Keyword: Keywords are special words in C programming which have their own predefined meaning. The functions and meanings of these words cannot be altered. Some keywords in C Programming are if, while, ... or a string literal. There are enumeration constants as well. Example: 121 234 3.14 

Description : What is the maximum possible length of an identifier? a) 31 characters b) 63 characters c) 79 characters d) none of the mentioned

Last Answer : C

Description : What can you say about the following statements? I. XML tags are case-insensitive. II. In JavaScript, identifier names are case-sensitive. III. Cascading Style Sheets (CSS) cannot be used with XML. IV. All well-formed ... IV are false. (3) only I and III are false. (4) only II and IV are false. 

Last Answer : Answer: Marks to all

Description : A keyword can be used as an identifier by using the  A) prefix # B) prefix @ C) prefix $ D) prefix x

Last Answer : A keyword can be used as an identifier by using the prefix @