In this demo,
you'll see with a practical example the difference between the string length
and the string size. In particular, note these two lines of code where I get
the string length and the string buffer size.
Then, I print out these values using printf.
Okay, let's see this code in action.
Let's enter a string.
Okay,
so here you can see the different length and size
numbers, 6 and 40 respectively, calculated on the same string.
Alright, well,
so far you learned that you can use a single char to
represent a single character in English text.
Now, what if you need to store international text in your strings?
Well, let's briefly touch on that topic in the next clip.