0
$\begingroup$

A character representing the digit n is stored as an 8 bit ASCII code. Convert to an 8 bit sign magnitude for the negative numerical value,-n. What is the algorithm for doing this?

$\endgroup$
  • 1
    $\begingroup$ It sounds like you're just asking about the two's complement. If I understood what you're asking, it seems that this section addresses your question directly. $\endgroup$ – Omnomnomnom Nov 10 '19 at 10:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.