How many bit combinations are there in a byte?
Answers were Sorted based on User's Feedback
Answer / abdullah javid
There'll actually be 256 combinations. The maximum value
that can be represented with a byte (8 - bits) is 255 but as
far as combinations are concerned 0 should also be
considered as well as 1, 2, 3, ..., 255. So there are total
256 combinations.
Is This Answer Correct ? | 94 Yes | 8 No |
Answer / vaibhav meena
it is 2^8
means 2 ^ no of bits
means 256....
:)
Is This Answer Correct ? | 28 Yes | 3 No |
Answer / azza
There are 256 combinations as 00000000 is classed a one
combination. plus the other 255 combinations. Answer 8 is
wrong.Answer 2 is correct.
Is This Answer Correct ? | 19 Yes | 3 No |
Answer / santosh shah
256 combinations.Byte contains the 8 Bits and bit contains
either the value 0 or 1.i.e.(2 raise to power 8 minus
1).The maximum number of value represented with a byte is 8
bits is 255 but 0 should also be considered as well as 1,
2, 3, ..., 255. So there are total
256 combinations.
Is This Answer Correct ? | 15 Yes | 6 No |
Answer / arjun
This has to be the easiest technical question for any
programmer...
A Byte is made of 8 Bits, so the number of combination for
Byte would be 2^8.
However, if asked the maximum number represented then it
would be (2^8)-1.
Surely, if you can't answer this you should seriously think
about changing your profession.
Is This Answer Correct ? | 7 Yes | 4 No |
Answer / panaitsdv
if number of bite values is n, and length of the byte is k.
that means n = 2, k = 8.
for n even => n^k
(2^8 = 256)
for n odd => n^k - 1
(2^7 - 1 = 128-1 = 127)
Is This Answer Correct ? | 5 Yes | 15 No |
Answer / k.kishorebabu
=2^8-1
=256-1
=255
bco'z only 8 bit data can be loaded that depends on the
address lines we take
Is This Answer Correct ? | 1 Yes | 12 No |
this is to swap to strings....but in output the whole strings are swapped leaving first as it is...why it is so #include<iostream.h> int main() { char a[]="ajeet"; char b[]="singh"; long x=*a; long y=*b; cout<<x<<":"<<y; x=x+y; y=x-y; x=x-y; *a=x; *b=y; cout<<x<<":"<<y; cout<<&a<<endl; cout<<&b<<endl; }
How do you establish a has-a relationship?
What is a dangling pointer in c++?
what does the following statement mean? int (*a)[4]
Define the operators that can be used with a pointer.
What is this weird colon-member (" : ") syntax in the constructor?
What is the use of vtable?
daily Routine of father
Design a program to input a date from user in the form day/month/year (e.g. 2/6/2000) and report whether it’s a valid date or not. The program should take account of leap years. You will need to know that a leap year is a year that is exactly divisible by 4, except that century years are only leap years if they are divisible by 400.
What is the difference between reference and pointer?
What is size of a empty class?
7 Answers Microsoft, Tata Elxsi, Wipro,
Which is better turbo c++ or dev c++?