Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
12 Cards in this Set
- Front
- Back
An array is a set of integers, chars, or other variables occupying ____________. |
Sequential memory addresses. |
|
Show a char type array with a size of 17 |
char name[17]; // an array of 17 chars numbered 0-16 |
|
Show an integer array with a size of 5 |
int name[5]; // an array of 5 integers, numbered 0 - 4 |
|
_____________ arrays might contain ____ value |
Uninitialized, any Arrays may be initialized when declared - short ages[] = {32, 17, 18, 19} |
|
An array is declared with a ______, a ______, and a _____. |
A name, a type, and a size. |
|
Declare an array of integers with 8 memory spaces. |
int my_array [8] |
|
Arrays may be initialized when ________. |
Declared |
|
Why must any function know the size of an array? |
Beats me.... |
|
A string in C is as a ___________ character array. |
Null-terminated |
|
A string can also be initialized with a ________. |
String Constant. |
|
char name[] = "skip"; |
name[0]='S' name[1]='k' name[2]='i' name[3]='p' name[4]='\0' |
|
Declare an array of characters of any size and initialize it with values. Do this without using a loop.
|
char my_chars[]={'a','b','c'} |