How many bit combinations are there in a byte?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of structure in c++?

553


Is it possible to write a c++ template to check for a function's existence?

574


What is increment operator in c++?

558


What is called array?

617


What are the advantages of c++?

589






What is the outcome of cout< a) 16 b) 17 c) 16.5

622


What is pointer -to-members in C++? Give their syntax?

595


What will the line of code below print out and why?

322


What is c++ code?

580


What is the latest c++ version?

604


Define pure virtual function?

559


What is c++ virtual inheritance?

595


Can malloc be used in c++?

566


Is overriding possible in c++?

567


What are friend classes?

609