Top "Unsigned" questions

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

Assembly x86 registers signed or unsigned

I know this is a really simple question, but I couldn't find an answer to this. Are the registers in …

assembly x86 cpu-registers unsigned signed
Converting Signed Int to Unsigned String value in Java

To keep this short, I am getting a signed number, -25771 (in Java), that I need the unsigned String representation …

java binary unsigned signed representation
what happens when i mix signed and unsigned types ?

I'm studying the C++ language and i have some doubt about type conversion, could you explain me what happens in …

c++ expression unsigned built-in-types
Why is std::ssize() introduced in C++20?

C++20 introduced the std::ssize() free function as below: template <class C> constexpr auto ssize(const C& …

c++ stl unsigned signed c++20
scanf %u negative number?

I have tried scanf("%u",&number) and I have entered negative number the problem is when I printf("%d",…

c printf scanf unsigned format-specifiers
unsigned int (c++) vs uint (c#)

Following is the c# code: static void Main(string[] args) { uint y = 12; int x = -2; if (x > y) Console.…

c# c++ int unsigned uint
Are there uint64 literals in Go?

I'm looking at the numeric types in Go. I want to use uint64 literals. Is this possible in Go? Here's …

go long-integer literals unsigned uint64
Why "unsigned int64_t" gives an error in C?

Why the following program gives an error? #include <stdio.h> int main() { unsigned int64_t i = 12; printf("%lld\…

c gcc unsigned int64
How to read specific bits of an unsigned int

I have an uint8_t and I need to read/write to specific bits. How would I go about doing …

c bit unsigned uint8t
In C, why is "signed int" faster than "unsigned int"?

In C, why is signed int faster than unsigned int? True, I know that this has been asked and answered …

c performance optimization unsigned signed