answersLogoWhite

0


Best Answer

The maximum length of a variable is dependent on the platform. In a 32 bit platform, this might be 4 bytes, although the compiler and run-time library might support 64 bit, or 8 byte variables. In a 64 bit platform, the length might be 8 bytes.

(Arrays, strings, structures, classes, etc. are aggregated types, not scalar types, so they don't count in this answer.)

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

You mean the length of the name of the variable? Compiler-dependent.

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

Compiler dependent, it should be at least 31 in most cases.

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

That's what sizeof returns.

This answer is:
User Avatar

User Avatar

Jawad Ul Hassan

Lvl 2
2y ago

8

This answer is:
User Avatar

User Avatar

Anonymous

Lvl 1
3y ago

8

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is maximum length of variable in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is the maximum length allowed in difining a c variable?

In order to claim compliance with ANSI C standards, the minimum maximum for internal identifiers and macros is 63 characters, and external identifiers is 31 characters. Vendors are encouraged to avoid imposing a maximum value whenever possible.


How do you find length of integer variable in c?

It doesn't have length, but you can use sizeof to find out its size.


What is the difference between Oracle data types char and varchar2?

Character string values storage:1. CHAR:§ Stores strings of fixed length.§ The length parameter s specifies the length of the strings.§ If the string has smaller length it padded with space at the end§ It will waste of a lot of disk space.§ If the string has bigger length it truncated to the scale number of the string.2. VARCHAR:§ Stores strings of variable length.§ The length parameter specifies the maximum length of the strings§ It stores up to 2000 bytes of characters§ It will occupy space for NULL values§ The total length for strings is defined when database was created.3. VARCHAR(2):§ Stores strings of variable length.§ The length parameter specifies the maximum length of the strings§ It stores up to 4000 bytes of characters§ It will not occupy space for NULL values§ The total length of strings is defined when strings are given


How do you swap in c programming?

the simple way can be explained by example as: let there be two integers as : int a=10,b=5; if we want to use third variable then let third variable be int c; and sorting is done as : c=a; a=b; b=c; if it is to be done by without using third variable then : a=a+b; b=a-b; a=a-b; at last the variable is sorted.


What is c a variable for in physics?

Speed of light.

Related questions

What is the maximum length allowed in difining a c variable?

In order to claim compliance with ANSI C standards, the minimum maximum for internal identifiers and macros is 63 characters, and external identifiers is 31 characters. Vendors are encouraged to avoid imposing a maximum value whenever possible.


How do you find length of integer variable in c?

It doesn't have length, but you can use sizeof to find out its size.


What is a variable length system?

It means that the length of something can vary, that it is not always the same length. The expression "variable length" may be used in different context, so I don't know what the item of variable length is that you heard or read about.It means that the length of something can vary, that it is not always the same length. The expression "variable length" may be used in different context, so I don't know what the item of variable length is that you heard or read about.It means that the length of something can vary, that it is not always the same length. The expression "variable length" may be used in different context, so I don't know what the item of variable length is that you heard or read about.It means that the length of something can vary, that it is not always the same length. The expression "variable length" may be used in different context, so I don't know what the item of variable length is that you heard or read about.


Is forearm length a discrete variable?

No, it is a continuous variable.


What is the independent variable?

Any variable can be the independent variable. It depends partly on what the dependent variable is, partly on the relationship you are examining. For example, if looking at age and length of children's feet, foot length would be considered the dependent variable. But if looking at foot length and shoe size, then foot length would be the independent variable.


What is MAXSIZE?

MAXSIZE is a C language macro defining the maximum length for all standard library input buffers.


What is the meaning of f3.5-5.6?

On for instance a 35-70mm camera lens the maxmimum aperture at 35mm is f3.5 and the maximum aperture at 70mm is f5.6. (f3.5-5.6) Maximum Aperture of a Variable Focal Length Camera Lens.


What is the difference between char and varchar data types?

The CHAR datatype uses a fixed length, where as the VARCHAR datatype can be variable in length up to the maximum value specified for the length. If you insert "Hello" into a CHAR(10) field, the column would actually contain "Hello " with 5 trailing spaces. The same value inserted in a VARCHAR(10) field would contain "Hello". char datatype is fixed length data type and it store maximum 255 characters while varchardatatype store up to 4000 character of variable length datatype


What is the maximum length of a whale in meters?

a maximum length of a whale is 900 metres


What is the Maximum length of cricket bat?

maximum permitted length of bat is 38" inches.


What is Maximum length of a cricket bat?

maximum permitted length of bat is 38" inches.


What range of values was used for your independent variable?

From the minimum value of the independent variable to its maximum.