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

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This talk explains how to choose integer types in C and C++ to reduce portability problems across platforms. It covers type sizes, arithmetic conversions, and standard and extended integer types.

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.