1.

What is the binary representation of the integer -14?(a) 11110(b) 01110(c) 01100(d) 11100The question was asked in exam.This question is from Signed Qualifier topic in section Miscellaneous Topics in C of C

Answer» CORRECT choice is (a) 11110

Easiest explanation - The left most bit (most SIGNIFICANT bit) is used to represent the sign of the number: 0 for positive and 1 for negative. For example, a VALUE of positive 14 is written as 01110(in binary). But a value of negative 14 is written as: 11110.


Discussion

No Comment Found

Related InterviewSolutions