Top "Signed" questions

In computing, signedness is a property of data types representing numbers in computer programs.

Signed/unsigned comparisons

I'm trying to understand why the following code doesn't issue a warning at the indicated place. //from limits.h #define …

c++ visual-studio-2005 comparison unsigned signed
What happens if I assign a negative value to an unsigned variable?

I was curious to know what would happen if I assign a negative value to an unsigned variable. The code …

c++ type-conversion integer unsigned signed
Google map signed api key errors in Android

When I switched from my debug map key to my signed map key my maps stop working. I get the …

android google-maps key signed
How to get the signed integer value of a long in python?

If lv stores a long value, and the machine is 32 bits, the following code: iv = int(lv & 0xffffffff) results …

python unsigned signed
1's complement using ~ in C/C++

I am using Visual Studio 2013. Recently I tried the ~ operator for 1's complement: int a = 10; cout << ~a <&…

c++ c unsigned signed ones-complement
C++ How to combine two signed 8 Bit numbers to a 16 Bit short? Unexplainable results

I need to combine two signed 8 Bit _int8 values to a signed short (16 Bit) value. It is important that the …

c++ byte signed short
Comparison operation on unsigned and signed integers

See this code snippet int main() { unsigned int a = 1000; int b = -1; if (a>b) printf("A is BIG! %…

c gcc unsigned signed
Android Studio Signed APK Not Installing

I am in Android Studio and signing an APK under Build > Generate Signed APK and using the wizard. Everything …

android android-studio apk release signed
What does it mean for a char to be signed?

Given that signed and unsigned ints use the same registers, etc., and just interpret bit patterns differently, and C chars …

c string character-encoding char signed
Convert unsigned byte to signed byte

Is there an easy and elegant way to convert an unsigned byte value to a signed byte value in java? …

java byte unsigned signed