Identification between positive and negative integers

the ranges are different for both positive and negative integers then if we are given a binary number how will we know if the sign bit is to be considered or not

hi Kartik,
just use int when no is less than 10^9 and long long int when it is till 10^18

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.