Top "Unsigned" questions

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

Converting char* to unsigned char*

How do I copy a char* to a unsigned char* correctly in C. Following is my code int main(int …

c char sha1 unsigned strcpy
How can I invert bits of an unsigned byte in Java?

I am trying to write a decoder for a very simple type of encryption. Numbers from 0-255 are entered via …

java byte unsigned bits complement
Why Is Comparing if an Unsigned Int >= 0 a "Pointless Comparison"?

I got warning: Pe186 "Pointless comparison of unsigned int with zero" when I tried to compile the following code: for(…

c++ c for-loop comparison unsigned
What to_unsigned does?

Could someone please explain me how VHDL's to_unsigned works or confirm that my understanding is correct? For example: C(30 …

type-conversion vhdl unsigned twos-complement signed-integer
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
Unsigned hexadecimal constant in C?

Does C treat hexadecimal constants (e.g. 0x23FE) and signed or unsigned int?

c constants hex unsigned signed
How to convert signed 32-bit int to unsigned 32-bit int?

This is what I have, currently. Is there any nicer way to do this? import struct def int32_to_uint32(…

python integer unsigned signed type-conversion
performance of unsigned vs signed integers

Is there any performance gain/loss by using unsigned integers over signed integers? If so, does this goes for short …

c++ c integer int unsigned
Does cast between signed and unsigned int maintain exact bit pattern of variable in memory?

I want to pass a 32-bit signed integer x through a socket. In order that the receiver knows which byte …

c casting int unsigned htonl
What is the best way to work around the fact that ALL Java bytes are signed?

In Java, there is no such thing as an unsigned byte. Working with some low level code, occasionally you need …

java byte unsigned signed