/* * SelfTest2 * Chapter 10 * By John Stile */ 1) Any array is to hold 25 records like the following: cassy@muster.com How would you declare this array? ANSWER: char aa[25][25]; // 25 records, 25 chars per record 2) If an array is to hold 20 records like the following, how would you declare it? cassy muster voice olenka malarecka piano ANSWER: char aa[20][25][25]; 3) When employing a two dimensional array, what do each fo the following accomplish? STATEMENT ANSWER printf("%c", xyz[3][2]); // print character at this array position printf("%s", xyz[2]); // print all elements in thrid record 4) What does the following accomplish? STATEMENT scanf("%d%d", &abc[3][2], &abc[3][3]); ANSWER: read two elements from standard input, separated by space interpret as digit assign to address of array element abc[3][2] and abc[3][3] 5) What would the array declaration for the array abc in the previous question look like? ANSWER: int abc[3][3];