Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Choosing the Right Integer Types in C and C++

code::dive conference via YouTube

Overview

Explore the intricacies of integer types in C and C++ programming languages in this comprehensive conference talk from code::dive 2018. Delve into the challenges posed by various signed and unsigned integer types, their impact on program efficiency and portability, and discover extended integer types that can resolve common issues. Learn how to leverage these extended types to enhance code quality and portability across different platforms. Gain insights into topics such as auto keywords, alignment, processor size, basic integers, character types, boolean types, arithmetic conversions, standard integer types, and more. Understand the importance of choosing the right integer types and how it affects program performance and reliability. By the end of this talk, acquire the knowledge to make informed decisions about integer type selection in your C and C++ projects, leading to more robust and portable code.

Syllabus

Introduction
Agenda
The problem
What could go wrong
Auto in C
Auto everything
Moving between platforms
Why C
Alignment
Processor Size
Basic Integers
Character Types
Boolean Types
Arithmetic and unsigned types
Standard integer types
Arithmetic conversions
Formalism
Ranking Scheme
Conversions
Testing
Narrowing Conversion
Signed Integers
Guaranteed Size
The Same Size
The Platforms Vary
The Sizes Arent Secret
Symbolic Constants
Context Constants
CharBed
Bit Size
Numeric Limits
Standard End
Exact Width
Int Least
Integer Fast
Signed Integer Type
Size Type
Difference Type
C Auto
CPPCon
Summary

Taught by

code::dive conference

Reviews

Start your review of Choosing the Right Integer Types in C and C++

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.