answersLogoWhite

0


Best Answer

The C99 standard (ISO/IEC: 9899:1999) has the following to say on the matter:

5.2.4.1 Translation limits

The 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 blocks
  • 63 nesting levels of conditional inclusion
  • 12 pointer, array, and function declarators (in any combinations) modifying an arithmetic, structure, union, or incomplete type in a declaration
  • 63 nesting levels of parenthesised declarators within a full declarator
  • 63 nesting levels of parenthesised expressions within a full expression
  • 63 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 unit
  • 511 identifiers with block scope declared in one block
  • 4095 macro identifiers simultaneously defined in one preprocessing translation unit
  • 127 parameters in one function definition
  • 127 arguments in one function call
  • 127 parameters in one macro definition
  • 127 arguments in one macro invocation
  • 4095 characters in a logical source line
  • 4095 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 files
  • 1023 case labels for a switch statement (excluding those for any nested switch statements)
  • 1023 members in a single structure or union
  • 1023 enumeration constants in a single enumeration
  • 63 levels of nested structure or union definitions in a single struct-declaration-list

Footnote: 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.

User Avatar

Wiki User

6y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How many character include in an identifier name in C?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How many characters can be included in an identifier name?

theres about a couple hundred character's


How many characters can be included in an identifier name Are all of these characters equally significant?

In most programming languages, an identifier name can typically include letters, digits, and underscore characters. The number of characters allowed in an identifier name varies across languages but is usually around 255 characters. All characters in an identifier are significant and can differentiate one identifier from another.


Is variable is also called as identifier?

No, the name of the variable is its identifier.


What is a species identifier?

A species name is a scientific name with two parts: the genus name followed by the species identifier. It is written in italics with the genus name capitalized. (The human species name is Homo sapiens. The species identifier is the second part of the species name (and it's lower-case)


What is the genus name and the species identifier in the scientific name guercus phellos?

The genus name is Quercus and the species identifier is phellos in the scientific name Quercus phellos.


A tag name is an identifier that links a(n) to a source?

a tag name is an identifier that links a what to a source?


Can you pass addresses to a function in C plus plus?

If the identifier you want to pass is an ordinary identifier, pass it as the address of... function(&identifier); If the identifier you want to pass is an array identifier, pass its name... function(arrayname);


Is it is true that the identifier and a variable in C programming language are same?

No. Identifier is a scientific name for the name.Variables, functions, types, etc -- each have an identifier.


What is MT 103 field 50F?

50F is the ordering customer field, to be shown with Party Identifier and name and address across up to four 35 character lines.


What is identifier name?

In computer programming, an "identifier" is a name for just about anything that can be named in the programming language: for example, variables, objects, classes, packages, etc.


What is the similarity between an identifier and a variable?

Answer:- identifier is the name like a, b, c, .... which is used to reference a memory location in a program. +-variable is the actual memory location which can hold values.so 'a' is an identifier to a variable which is memory location located somewhere in memory.Answer:A Variable in Java is something that holds a particular value in a class. For example:public class A { private String name = ""; ......} In the above declaration name is a variable. It would hold the data of type String.An Identifier is nothing but the name that we give for our variables, classes, methods etc. It is nothing but the name with which we identify an entity in Java. For example here A is the identifier for the class, name is the identifier for the variable etc.


How do you accept a string in C character by character and then print it character by character?

#include<stdio.h> #include<conio.h> void main() { int a,s,t=8; printf(enter the name); scanf("d%d5d5"); } getche()