Time is a tool you can put on the wall, or wear it on your wrist... (The clock ticks.)

??:?? | ♒︎ • • ☿

Recently Active
sadnoob_issad ()
abraxas_dapwnl0rd ()
pawnz0rrr ()

"C++ for Dummies"...

The book reads as follows:

"Initialization of null-terminated character sequences"
• "Because arrays of characters are ordinary arrays, they follow the same rules as these. For example, to initialize an array of characters with some predetermined sequence of characters, we can do it just like any other array:
1: char myword[] = { 'H', 'e', 'l', 'l', 'o', '\0' };
The above declares an array of 6 elements of type char initialized with the characters that form the word "Hello" plus a null character '\0' at the end.
But arrays of character elements have another way to be initialized: using string literals directly.
In the expressions used in some examples in previous chapters, string literals have already shown up several times. These are specified by enclosing the text between double quotes ("). For example:
1: "the result is: "

Um... You don't understand any of that. Cool.