Top "Unsigned" questions

An unsigned variable is a variable that can only represent non-negative numbers.

How to print hex from uint32_t?

The code I have been working on requires that I print a variable of type uint32_t in hexadecimal, with …

c++ c printf unsigned uint32-t
How do you get an unsigned long out of a string?

What's the safest and best way to retrieve an unsigned long from a string in C++? I know of a …

c++ long-integer unsigned string-parsing string-conversion
Using a typedef'd uint causes error, while "unsigned int" does not...?

For some reason, when I define a variable as "uint" instead of "unsigned int" in my program, it errors. This …

c++ gcc typedef unsigned uint
Why would we use addiu instead of addi?

In MIPS assembly, what is the benefit of using addiu over addi? Isn't addiu unsigned (and will ruin our calculations?)

assembly mips add unsigned immediate-operand
Convert int to unsigned short java

I have written a .obj parser in java to modelize 3D objects on iPhone. I would like to export the …

java int unsigned short
Difference between unsigned and unsigned int in C

Could you please make it clear what the difference is between unsigned and unsigned int? Maybe some example code would …

c int unsigned
C++: Compiler warning for large unsigned int

I have following array, that I need to operate by hand on bitmaps. const unsigned int BITS[32] = {1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648}; Unfortunately, when compiled …

c++ int warnings unsigned
Difference between unsigned and unsigned int in C++

What is the difference between unsigned and unsigned int? This question was already answered for C (there is no difference): …

c++ types int unsigned
Is it safe to use negative integers with size_t?

I just saw some C++ code like this. It was using a condition to decide whether to walk forward or …

c++ c++11 unsigned size-t
How do I print a short as an unsigned short in Java

I have an array of short whose values range between 0 and the maximum value of a short. I scale the …

java unsigned short ushort