Перейти к содержимому

[Day 22] - Typedef (An alias for a new type)

Mike Shah

0:00 / 0:00

[Day 22] - Typedef (An alias for a new type)

1 696 просмотров · 3 г. назад
Mike Shah
42,3 тыс. подписчиков
1 696 просмотров · 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 revisit the 'typedef' keyword that has showed up a few times in our series. typedef is a way for us to create an alias for new types, so we'll see how that can simplify and potentially make our code easier to use (and is a better tool than say define) 00:00 Introduction 00:50 typedef introduction 01:52 Example with define and preprocessor 04:00 typedef usage for a new alias of data type 05:40 dangerous example with define for substituting a type 08:20 Using typedef for pointer types 9:59 typedef with structs 13:24 typedef with function pointers 16:04 typedef with struct revisited 17:30 Review of lesson 18:45 Conclusion ►Please like and subscribe to help the channel! ►YouTube Channel:    / mikeshah   ►Join our free community: https://courses.mshah.io/communities/...