Roundbeargames | [C++ Tutorial #17.3] Arrays, Pointers, Null Characters @Roundbeargames | Uploaded December 2020 | Updated October 2024, 1 hour ago.
A couple points here. Calling the array name usually results in the implicit conversion to a pointer that points to the first element.
Null character (or terminating zero etc) denotes the end of a string. In this example, you wouldn't know where the string ends if it weren't for the 0.
The Development of the C Language by Dennis M. Ritchie:
drive.google.com/file/d/1wQBe8baK61vS9ZW0qqonrDrVZ8X62vzP/view?usp=sharing
Why do arrays in C decay to pointers:
stackoverflow.com/questions/33291624/why-do-arrays-in-c-decay-to-pointers
C++ Tutorial Playlist:
youtube.com/playlist?list=PLWYGofN_jX5Apmb8pJUD8NN3KskHW2lcy
Repository:
github.com/RoundBearChoi/CPP_Tutorial_Projects
Any questions/comments? Join us on discord:
discord.gg/hAFTgcA
Arrays & pointers: (0:00)
Embryonic C: (1:33)
Character arrays: (3:14)
Terminating zeros: (4:41)
Outro: (7:18)
Social
twitter: twitter.com/roundbeargames
facebook: facebook.com/roundbeargames17
hive: peakd.com/@roundbeargames/posts
linkedin: linkedin.com/in/jangwon-choi-15041a9a
Patreon:
patreon.com/roundbeargames
Channel Memberships:
youtube.com/roundbeargames/join
#gamedev
A couple points here. Calling the array name usually results in the implicit conversion to a pointer that points to the first element.
Null character (or terminating zero etc) denotes the end of a string. In this example, you wouldn't know where the string ends if it weren't for the 0.
The Development of the C Language by Dennis M. Ritchie:
drive.google.com/file/d/1wQBe8baK61vS9ZW0qqonrDrVZ8X62vzP/view?usp=sharing
Why do arrays in C decay to pointers:
stackoverflow.com/questions/33291624/why-do-arrays-in-c-decay-to-pointers
C++ Tutorial Playlist:
youtube.com/playlist?list=PLWYGofN_jX5Apmb8pJUD8NN3KskHW2lcy
Repository:
github.com/RoundBearChoi/CPP_Tutorial_Projects
Any questions/comments? Join us on discord:
discord.gg/hAFTgcA
Arrays & pointers: (0:00)
Embryonic C: (1:33)
Character arrays: (3:14)
Terminating zeros: (4:41)
Outro: (7:18)
Social
twitter: twitter.com/roundbeargames
facebook: facebook.com/roundbeargames17
hive: peakd.com/@roundbeargames/posts
linkedin: linkedin.com/in/jangwon-choi-15041a9a
Patreon:
patreon.com/roundbeargames
Channel Memberships:
youtube.com/roundbeargames/join
#gamedev