ExplanationIn the above program a string is initialized with array name [ ]. The string is not
complete and contains blanks. The i f statement within the whi 1 e () loop checks every character of
the string. If blank space is found, if block is executed and the user needs to enter a character.
Otherwise the next successive characters are displayed.
SUMMARY
You have now learnt how to initialize an array by different ways .The Characteristics of array has
been discussed in depth. How to specify the elements of one-dimensional, two-dimensional and three
or multi dimensional arrays is explained in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.