Linux C Programming Tutorial Part 15 - 2's Complement and Negative numbers | Linux Today

Linux C Programming Tutorial Part 15 – 2’s Complement and Negative numbers

Written By
HA
Himanshu Arora
Mar 22, 2019

Up until now, in this ongoing C programming tutorial series, we have discussed quite a few concepts, but missed a basic one. It’s about negative numbers. Yeah, though we briefly mentioned signed vs unsigned variables in one of our initial tutorials, we didn’t actually discuss how negative numbers are stored in memory. Well, that’s exactly what will be discussed in this tutorial.

HA

Himanshu Arora

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.