top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to detect overflow when subtracting two 2's complement number?

0 votes
256 views
How to detect overflow when subtracting two 2's complement number?
posted Aug 7, 2017 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+4 votes

Say I have given two big numbers i.e. 10^8 and 10^9 what could be the best way to multiply them without facing the overflow issue.

+1 vote

A binary string will be given to us and we need to print its 1s and 2s complement of that? C code would be helpful?

–1 vote

Given a Singly linked list with each node containing either 0, 1 or 2. Write code to sort the list.
Input : 1 -> 1 -> 2 -> 0 -> 2 -> 0 -> 1 -> 0
Output : 0 -> 0 -> 0 -> 1 -> 1 -> 1 -> 2 -> 2

...