Describe what arrays are and what they can be used for. Explain why we would ever use arrays and not just make multiple variables.
Show and explain how to declare an 8-slot char array filled with the letters of the word "Colorado".
The array is a variable that stores things depending on the return type. Using an array makes it easier than using multiple variables.
char state [8] = {c,o,l,o,r,a,d,o};
char state [8] = {c,o,l,o,r,a,d,o};
No comments:
Post a Comment