Using $8$-bit Signed-Magnitude representation, how is $(-42)_{10}$ stored in memory?
$8$-बिट साइन-मैग्निट्यूड (Signed-Magnitude) रूप में $(-42)_{10}$ को मेमोरी में कैसे स्टोर किया जाएगा?
Solution Breakdown:
-> Step 1: Write $+42$ in $7$-bit magnitude: $32 + 8 + 2 = 0101010$.
-> Step 2: Set the leftmost Sign Bit (MSB) to $1$ for negative: $(10101010)_2$.
-> Hence, Option (A) is the correct answer.
-> चरण 1: $+42$ का $7$-बिट बाइनरी $0101010$ है।
-> चरण 2: ऋणात्मक चिह्न के लिए MSB को $1$ करने पर $(10101010)_2$ मिलता है।
-> इसलिए विकल्प (A) बिल्कुल सही है।