1 votes 1 votes Can any tell the formula for A<B and A=B I understand the solution but I didn’t found any formula on net. Any valid links are welcome. Ravi kumar singh asked Dec 30, 2018 Ravi kumar singh 308 views answer comment Share Follow See 1 comment See all 1 1 comment reply Shaik Masthan commented Dec 30, 2018 reply Follow Share in general derivation like :- 2 votes 2 votes Please log in or register to add a comment.
1 votes 1 votes Here we compare 4 - 4 bits Therefore = A= B = 16 bits From 8 bits , total number of expression possible = 2^8 = 256 = 256- 16= 240 Number of (A> B) = Number of ( A<B) Therefore 240/2 = 120 ans Magma answered Dec 30, 2018 Magma comment Share Follow See 1 comment See all 1 1 comment reply Ravi kumar singh commented Dec 30, 2018 reply Follow Share Thanks for explanation no need of formula anymore. 0 votes 0 votes Please log in or register to add a comment.