answersLogoWhite

0

It depends on the type of integer (such as long, short, int and char) and the specific implementation of C++. The only guarantee is that a char must occupy one byte (sizeof(char)==1). An int is typically 32-bits (4 bytes), but only sizeof(int) can tell you for sure.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is the maximum number that you can count up to using 10 bits14 bits and count up to a maximum of 511 63?

Using n bits, you can count to 2n - 1. This is for unsigned integers. So 10 bits = 210 - 1 = 1023 14 bits = 214 - 1 = 16383 To count to 511 you need log2(511+1) = log2(512) = 9 bits. To count to 63 you need log2(63+1) = log2(64) = 6 bits.


How many bits of address bus are required to address 1mb memory?

You need 20 bits of address bus to address 1 Mb of memory.


How many bits need to represent the decimal number 200?

8


Why do you need to know about integers?

What you need to know about integers is that integers is the name for the group of numbers that include whole numbers and negative numbers. But integers DO NOT include fractions.


Where can you use integers at?

Every aspect of mathematics depends upon integers, and even if you don't do any mathematics, you count things with integers. If you even want to know how many guests you are having for dinner, you need to use integers.


How many bits do you need to represent months of the year?

Well, honey, to represent months of the year, you need at least 4 bits because you've got 12 months in a year, and you need 4 bits to represent numbers from 0 to 15. So, technically, you could do it with just 4 bits, but if you want to be fancy, you could use 5 bits for a more efficient representation.


How many bits do you need to encode any signed integer between -1000 and 1000?

11 bits (which actually allows -1024 to 1023)


How many subtraction problems are there that equal 36?

Infinitely many. Using only integers, 36 - 0 37 - 1 38 - 2 and so on. And of course, there is no need to be limited to integers.


How many bits do you need to borrow in a class C subnet masks to accommodate 18 networks?

Borrow 5 bits (for 30 subnets total).


Do convience stores use integers?

Yes, they do. Many products are priced per item. And to figure out the total cost, you need integers to count the number of items.


What is the largest unsigned integer that may be stored in 20 bits?

It depends on the number representation you use and how much resolution you need. If you use a floating point representation, the stored number can be extremely large but have poor resolution. If you need to have a resolution of one count and include a zero, then the largest is 2^20 - 1


How many bits are need to represent colors?

Most modern digital cameras use 24 bits (8 bits per primary) to represent a color. But more or less can be used, depending on the quality desired. Many early computer graphics cards used only 4 bits to represent a color.