[Day 23] - Fixed width types and bool in C
Mike Shah
0:00 / 0:00
[Day 23] - Fixed width types and bool in C
2 052 просмотра · 3 г. назад
Mike Shah
42,3 тыс. подписчиков
2 052 просмотра · 3 г. назад
►C Programming playlist: • C Programming Series
►Find full courses on: https://courses.mshah.io/
►Join as member to get perks: / @mikeshah
►Lesson Description: In this lesson we look at fixed-width types in the C programming standard library, which allows us to use types that have a gaureenteed minimum number of bytes to support a range of values stored in the type. The reality is, an 'int' can be different sizes on different architectures otherwise. Later on in this lesson, I'll also show you that along with the fixed-width types, there is also a 'bool' type in stdbool.h so we can have 'true' and 'false' in C.
00:00 Introduction
00:40 Discovering the different sizes of 'int'
02:00 Programmatically finding sizeof 'int' on our architecture
03:18 Finding the limits (range) of different ints
04:05 stdint.h for fixed-width integers
07:00 stdbool.h for 'bool' type
09:10 Conclusion
►Please like and subscribe to help the channel!
►YouTube Channel: / mikeshah
►Join our free community: https://courses.mshah.io/communities/...