[C++ Tutorial #17.3] Arrays, Pointers, Null Characters

Words
104
Reading
1 min
Listen
Play
6y

20201210_213833_0000.png


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:
https://drive.google.com/file/d/1wQBe8baK61vS9ZW0qqonrDrVZ8X62vzP/view?usp=sharing

Why do arrays in C decay to pointers:
https://stackoverflow.com/questions/33291624/why-do-arrays-in-c-decay-to-pointers

C++ Tutorial Playlist:
https://youtube.com/playlist?list=PLWYGofN_jX5Apmb8pJUD8NN3KskHW2lcy

Repository:
https://github.com/RoundBearChoi/CPP_Tutorial_Projects

Any questions/comments? Join us on discord:
https://discord.gg/hAFTgcA

Arrays & pointers: (0:00)
Embryonic C: (1:33)
Character arrays: (3:14)
Terminating zeros: (4:41)
Outro: (7:18)

Social
twitter: https://twitter.com/roundbeargames
facebook: https://facebook.com/roundbeargames17
hive: @roundbeargames/posts
reddit: https://reddit.com/user/roundbeargames
linkedin: https://linkedin.com/in/jangwon-choi-15041a9a

Patreon:
https://patreon.com/roundbeargames

Channel Memberships:
https://youtube.com/roundbeargames/join


rb_channel_art_1280_steem_re.png
ytlogo.pngdlogo.png twlogo.png fblogo.png rlogo.png lilogo.png

[C++ Tutorial #17.3] Arrays, Pointers, Null Characters | Ecency