answersLogoWhite

0


Best Answer

The only certainty is that a char holds one byte. All other primitives are implementation dependant. However, you can determine the length of any type, including user-defined types, by using the sizeof() operator.

User Avatar

Wiki User

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

Wiki User

11y ago

Data type sizes are implementation-dependant, often relative to the underlying architecture (e.g., 32 or 64 bit) and compiler options. It's best never to assume the size of any data type. The sizeof() operator will tell you the exact size of any data type and will take into account any alignment requirements. Use it always and you can never go wrong.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

It depends on the implementation. The usual minimum signed integer is -128 for 8 bit precision, -16,384 for 16 bit precision, -2,147,483,648 for 32 bit precision, and -9,223,372,036,854,775,808 for 64 bit precision.

I'm researching the IEEE-754 floating point ranges and will post a revised answer later. Anyone else, of course, is welcome to do so if desired.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How many bytes can each of the in c plus plus language data type hold?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

512 MB can hold qbout how many bytes?

1 MB (megabyte) = 1048576 bytes (2^20)


What are the Access data types and how they are used?

In Access and in databases in general each field in a database table is of a certain data type. The data type determines what type of data a field can hold. A field of the text data type can hold text, a field of the number data type can hold numbers and a field of the data/time data type can hold date and time values.Access actively checks what type of data is entered into a field and Access will disallow the entry of data into a field that doesn't conform to the field's data type. Access won't allow you to put text into a field of the Number data type, for example.So, data types are a way to restrict the entry of data into a field. Internally, the database uses different strategies for the storage and retrieval of different data types.


What is the difference between datatype and keyword in c?

data type refers to the kind of value that is held by a particular variable. For ex: an int variable contains integer value, a string holds a alpha numeric value etc. variable refers to the name of a value using which we can refer to this value. Ex: public int age = 28; here int is the data type and age is the variable.


Why range needed for c data types?

Because each data type uses a certain number of "bits" to store their values, and thus are mathematically limited to the amount of data they can hold before losing information. You can think of an analogy of your mailbox and letters you receive. You can only fit so many letters into the mailbox before it physically cannot hold any more letters.


Memory address register is used to store?

memory addres register is used hold data addresses that refer to the data portion of the memory(by umar farooq.pk) memory addres register is used hold data addresses that refer to the data portion of the memory(by umar farooq.pk)

Related questions

What can hold up to 512 bytes of data?

A Sector.


How much data can a motherboard hold?

Exactly 0 bytes


How many bytes of data can 32 MB of RAM store?

A stick of 512 megabytes of RAM can hold about 512 megabytes of data. It cannot, however, store it for long because it is volatile and is not designed to store data.


How much space is 48 mega bytes?

KB = Kilo(1000)byte A KB of data can hold 2^10 =1024 Bytes of Information


What is the size of a Blu-ray movie in gigabites?

25 giga bytes single layer50 giga bytes dual layerBlu-Ray can hold up to a maximum of 50 GB, which is 5 times more data than a DVD can hold


What will a megabyte hold?

A megabyte can hold approximately 1 million bytes of data, which is equivalent to roughly 500 pages of plain text or a few minutes of audio or video.


How many bytes can a CD-ROM hold?

When data first started getting put onto compact discs in 1985 (until which time their sole purpose was for music), a typical CD held 74 minutes of music, or 650 million bytes of data. Today, your typical standard CD-ROM holds 80 minutes of music and 700 million bytes of data.


How many bytes can a CD hold?

Approx 700MB, or 700,000,000 bytes.


How many megabytes can a 63 minute CD hold?

A 63-minute CD could hold about 551mb.


In main memory how many bits num variable will hold?

That depends on the programming language, and on the specific data type. Java, for example, has integers of different sizes; for example, an int uses 4 bytes, and a long uses 8 bytes. It also has shorter integer data types. Java also has different types of floating point numbers; for example, a double uses 8 bytes, and a float uses 4 bytes. Java also has classes for arbitrary-precision math (classes BigInt and BigMath); in this case, the size in memory for a number will vary, depending on the number of digits.That depends on the programming language, and on the specific data type. Java, for example, has integers of different sizes; for example, an int uses 4 bytes, and a long uses 8 bytes. It also has shorter integer data types. Java also has different types of floating point numbers; for example, a double uses 8 bytes, and a float uses 4 bytes. Java also has classes for arbitrary-precision math (classes BigInt and BigMath); in this case, the size in memory for a number will vary, depending on the number of digits.That depends on the programming language, and on the specific data type. Java, for example, has integers of different sizes; for example, an int uses 4 bytes, and a long uses 8 bytes. It also has shorter integer data types. Java also has different types of floating point numbers; for example, a double uses 8 bytes, and a float uses 4 bytes. Java also has classes for arbitrary-precision math (classes BigInt and BigMath); in this case, the size in memory for a number will vary, depending on the number of digits.That depends on the programming language, and on the specific data type. Java, for example, has integers of different sizes; for example, an int uses 4 bytes, and a long uses 8 bytes. It also has shorter integer data types. Java also has different types of floating point numbers; for example, a double uses 8 bytes, and a float uses 4 bytes. Java also has classes for arbitrary-precision math (classes BigInt and BigMath); in this case, the size in memory for a number will vary, depending on the number of digits.


How many bytes does a DVD hold?

when we're talking about DVD movies thinking in terms of how many bytes is pretty rediculous. a very short DVD quality movie will be measured at least in tens of mega-bytes (Mb). one megabyte is equal to 1,048,576 bytes. so, if you were, for instance, thinking in terms of how many bytes there were in a full-length DVD quality feature film then you would be talking about gigabytes(Gb). one Gb is equal to 1,073,741,824 bytes. you need between 1 and 3 gigs of space for a whole DVD worth of information.


How many bytes in a Blu-ray movie?

A Blu-Ray disc can hold up to a maximum of 50 GB of data, which is 5 times more than a DVD can hold