answersLogoWhite

0

It depends on the language. In C/C++, decimal values are specified using float, double or long double types. A float is a single precision floating point value that is typically 32-bits in length, however the actual length is implementation dependant. A double is always at least as long as a float while a long double is always at least as long as a double. To determine the actual length at compile time, we use the sizeof() operator.

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

How many bytes is a double variable?

There are 8 bytes in a double


'How many bytes is a float variable'?

4


How many bytes take an integer variable in C under windows?

A plain integer variable in C under windows is 2 bytes in 16 bit windows, and 4 bytes in 32 bit windows.


How many bytes in an address of an int variable?

32 bits or 4 bytes and an int is not an address, it is a primitive so it directly access the data without a reference.


Why 1024 bytes rounded to 1000 bytes?

1024 bytes is binary counting while 1000 bites is decimal counting.


How many bytes are there in 1011?

To determine how many bytes are in the binary number 1011, we first convert it to decimal. The binary number 1011 equals 11 in decimal. Since one byte consists of 8 bits, 1011 is less than one byte, as it only contains 4 bits. Therefore, there are 0.5 bytes in 1011.


Define pointer in C?

Pointer is a variable, A variable that stores the address of another variable. Size of a pointer is 2 bytes.


What is 1 gigabyte in decimal?

The way "gigabyte" is usually used, it means 10243 bytes. In other words, 1,073,741,824 bytes.


How many bytes in a 6gb flash drive?

A 6 GB flash drive contains approximately 6 billion bytes. More precisely, since 1 gigabyte (GB) is equal to 1,073,741,824 bytes (using the binary definition), a 6 GB flash drive would have about 6,442,450,944 bytes. However, in decimal terms, it is often rounded to 6,000,000,000 bytes.


How many bytes integer variable can take?

The number of bytes an integer variable can take depends on the programming language and the system architecture. Typically, in languages like C and C++, an int usually takes 4 bytes (32 bits) on a 32-bit or 64-bit architecture, while a short takes 2 bytes and a long can take 4 or 8 bytes depending on the system. In Python, integers can vary in size and can take more than 4 bytes, depending on their value, as they are dynamically allocated. Always check the specific language documentation for precise details.


How many bytes is an integer variable?

It depends on the context. Each database and computer language define an "integer". In the C language an integer is defined by the hardware. It can vary from 2 to 8 bytes or more.


What is a zettabyte?

A zettabyte is a massive amount of bytes and referencing from wikipedia (yes it is correct) it is 1,000,000,000,000,000,000,000 bytes in decimal or 1021