Let's quickly understand signed and Unsigned Integers

Let's quickly understand signed and Unsigned Integers
Photo by Nick Hillier / Unsplash

An unsigned int is an integer that can not be negative and thus has a higher range of positive values that it can assume.

A signed int is an integer that can be negative but has a lower positive range in exchange for more negative values it can assume.

That's all lol 😆

Here is a...

Quick hack that you can refer to quickly remember the bits and range of signed/unsigned int

image.png
quick hack to remember signed & unsigned int

Happy coding 🔢

Anish Shrestha

Anish Shrestha

I'm a certified TensorFlow developer and a software engineer specializing in building ai-based solutions, web applications, and everything in between.